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 a43c29ccd4
commit 42bc279941
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;
}