diff options
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_Iterator.cpp')
-rw-r--r-- | source/blender/freestyle/intern/python/BPy_Iterator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_Iterator.cpp b/source/blender/freestyle/intern/python/BPy_Iterator.cpp index 5c19dfd29ac..3356325c92f 100644 --- a/source/blender/freestyle/intern/python/BPy_Iterator.cpp +++ b/source/blender/freestyle/intern/python/BPy_Iterator.cpp @@ -193,7 +193,8 @@ PyMODINIT_FUNC Iterator_Init( PyObject *module ) void Iterator___dealloc__(BPy_Iterator* self) { - delete self->it; + if (self->it) + delete self->it; self->ob_type->tp_free((PyObject*)self); } |