diff options
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_StrokeShader.cpp')
-rw-r--r-- | source/blender/freestyle/intern/python/BPy_StrokeShader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_StrokeShader.cpp b/source/blender/freestyle/intern/python/BPy_StrokeShader.cpp index f18620888f0..c53f1e7d888 100644 --- a/source/blender/freestyle/intern/python/BPy_StrokeShader.cpp +++ b/source/blender/freestyle/intern/python/BPy_StrokeShader.cpp @@ -266,7 +266,8 @@ int StrokeShader___init__(BPy_StrokeShader *self, PyObject *args, PyObject *kwds void StrokeShader___dealloc__(BPy_StrokeShader* self) { - delete self->ss; + if (self->ss) + delete self->ss; self->ob_type->tp_free((PyObject*)self); } |