fix possible memory licks for operations with Point object