• T.J. Corona's avatar
    Properly handle memory between C++ and Python for operations · 1b41edc3
    T.J. Corona authored
    To allow smtk to manipulate Python operations as C++ objects, we
    originally held a reference to the Python operation within the C++
    instance to prevent Python from garbage collecting the object. This
    resulted in a circular dependency where the Python object would never
    be deleted, causing memory overlap issues when multiple Python
    operations were used. This MR moves the logic for keeping the Python
    representation of an operation into a specialized typecaster for
    operations, breaking the cyclic dependency and allowing C++ and Python
    to safely free operations when they go out of scope.
    1b41edc3
Name
Last commit
Last update
.gitlab Loading commit data...
CMake Loading commit data...
applications Loading commit data...
conda Loading commit data...
data Loading commit data...
doc Loading commit data...
smtk Loading commit data...
thirdparty Loading commit data...
utilities Loading commit data...
.clang-format Loading commit data...
.editorconfig Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.hooks-config Loading commit data...
.readthedocs.yml Loading commit data...
.travis.yml Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
CTestConfig.cmake Loading commit data...
LICENSE.txt Loading commit data...
ReadMe.md Loading commit data...
version.txt Loading commit data...