From f891d4e2adae2dcf35497ba95a9cfb74affead0c Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 3 Jul 2020 16:32:12 +0200 Subject: Clang-Tidy: Fix readability-delete-null-pointer warnings Also enable it in the configuration. --- .../python/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp') diff --git a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp index 88c050e243e..4fd6d949974 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp @@ -84,9 +84,7 @@ static int UnaryFunction0DVectorViewShape___init__(BPy_UnaryFunction0DVectorView static void UnaryFunction0DVectorViewShape___dealloc__(BPy_UnaryFunction0DVectorViewShape *self) { - if (self->uf0D_vectorviewshape) { - delete self->uf0D_vectorviewshape; - } + delete self->uf0D_vectorviewshape; UnaryFunction0D_Type.tp_dealloc((PyObject *)self); } -- cgit v1.2.3