diff options
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_ViewMap.cpp')
-rw-r--r-- | source/blender/freestyle/intern/python/BPy_ViewMap.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_ViewMap.cpp b/source/blender/freestyle/intern/python/BPy_ViewMap.cpp index b7b425abe23..67a4249ade8 100644 --- a/source/blender/freestyle/intern/python/BPy_ViewMap.cpp +++ b/source/blender/freestyle/intern/python/BPy_ViewMap.cpp @@ -69,9 +69,7 @@ static int ViewMap_init(BPy_ViewMap *self, PyObject *args, PyObject *kwds) static void ViewMap_dealloc(BPy_ViewMap *self) { - if (self->vm) { - delete self->vm; - } + delete self->vm; Py_TYPE(self)->tp_free((PyObject *)self); } |