Testing the value of self.parent in _SolutionBase.__dealloc__ was ineffective because this attribute can already be cleared when __dealloc__ is called, causing the borrowed C++ objects to be deleted prematurely. A C data member needs to be used to determine whether this object is responsible for deleting the underlying C++ objects. |
||
|---|---|---|
| .. | ||
| cython | ||
| matlab | ||
| python_minimal | ||