Part: geometry extensions several memory leak fixes

This commit is contained in:
Abdullah Tahiri
2019-02-12 19:36:50 +01:00
committed by wmayer
parent 21e1ccbe9b
commit 4d86374cb0
2 changed files with 10 additions and 6 deletions

View File

@@ -72,7 +72,7 @@ PyObject* GeometryExtensionPy::copy(PyObject *args)
Part::GeometryExtension* clone = static_cast<Part::GeometryExtension*>(extpy->_pcTwinPointer);
delete clone;
}
extpy->_pcTwinPointer = ext->copy().get();
extpy->_pcTwinPointer = ext->copy().release();
return cpy;
}