diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-07-03 17:32:12 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-07-03 17:32:51 +0300 |
commit | f891d4e2adae2dcf35497ba95a9cfb74affead0c (patch) | |
tree | fddb5cad92ddbe5b22323ee0b011f1f95682c716 /source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec2f.cpp | |
parent | 53d41e1a6fc4c521e412fba57913f93fadeb3735 (diff) |
Clang-Tidy: Fix readability-delete-null-pointer warnings
Also enable it in the configuration.
Diffstat (limited to 'source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec2f.cpp')
-rw-r--r-- | source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec2f.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec2f.cpp b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec2f.cpp index 1469b0a6e33..939ccfb8905 100644 --- a/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec2f.cpp +++ b/source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec2f.cpp @@ -108,9 +108,7 @@ static int UnaryFunction1DVec2f___init__(BPy_UnaryFunction1DVec2f *self, static void UnaryFunction1DVec2f___dealloc__(BPy_UnaryFunction1DVec2f *self) { - if (self->uf1D_vec2f) { - delete self->uf1D_vec2f; - } + delete self->uf1D_vec2f; UnaryFunction1D_Type.tp_dealloc((PyObject *)self); } |