Ticket #880 (closed bug: fixed)
Memory management in C++ classes.
|Reported by:||Noughmad||Owned by:||Noughmad|
The SIP interface to the C++ classes contain the /Transfer/ and /TransferBack/ annotations, but not in all places. This leads to memory leaks, when objects are not deleted but their wrappers are.
The lack of these annotations in the NetworkCurve also leads to crashes, because objects are delete twice, once in C++ and once in Python.
Because NetworkCurve's methods work on lists, not individual points, some handwritten code will have to be added to the SIP files, that will transfer the ownership to C++ and back.