diff options
-rw-r--r-- | source/blender/freestyle/intern/python/BPy_Interface0D.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_Interface0D.cpp b/source/blender/freestyle/intern/python/BPy_Interface0D.cpp index 89eb3600665..fb8c27c4205 100644 --- a/source/blender/freestyle/intern/python/BPy_Interface0D.cpp +++ b/source/blender/freestyle/intern/python/BPy_Interface0D.cpp @@ -189,7 +189,8 @@ int Interface0D___init__(BPy_Interface0D *self, PyObject *args, PyObject *kwds) void Interface0D___dealloc__(BPy_Interface0D* self) { - delete self->if0D; + if( self->if0D->py_if0D ) + delete self->if0D; self->ob_type->tp_free((PyObject*)self); } |