diff options
Diffstat (limited to 'source/blender/freestyle/intern/stroke')
-rw-r--r-- | source/blender/freestyle/intern/stroke/Canvas.cpp | 4 | ||||
-rw-r--r-- | source/blender/freestyle/intern/stroke/Stroke.cpp | 4 |
2 files changed, 2 insertions, 6 deletions
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() diff --git a/source/blender/freestyle/intern/stroke/Stroke.cpp b/source/blender/freestyle/intern/stroke/Stroke.cpp index 2f29eac83b1..93a870c26ad 100644 --- a/source/blender/freestyle/intern/stroke/Stroke.cpp +++ b/source/blender/freestyle/intern/stroke/Stroke.cpp @@ -484,9 +484,7 @@ Stroke &Stroke::operator=(const Stroke &iBrother) _id = iBrother._id; _ViewEdges = iBrother._ViewEdges; _sampling = iBrother._sampling; - if (_rep) { - delete _rep; - } + delete _rep; if (iBrother._rep) { _rep = new StrokeRep(*(iBrother._rep)); } |