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. --- source/blender/freestyle/intern/stroke/Canvas.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/blender/freestyle/intern/stroke/Canvas.cpp') diff --git a/source/blender/freestyle/intern/stroke/Canvas.cpp b/source/blender/freestyle/intern/stroke/Canvas.cpp index 4386e64345f..14c74c0f127 100644 --- a/source/blender/freestyle/intern/stroke/Canvas.cpp +++ b/source/blender/freestyle/intern/stroke/Canvas.cpp @@ -90,9 +90,7 @@ Canvas::~Canvas() } _maps.clear(); } - if (_steerableViewMap) { - delete _steerableViewMap; - } + delete _steerableViewMap; } void Canvas::preDraw() -- cgit v1.2.3