From 50c46fb9b3d1c6c423c0e6bf90a1bbc2e571c4bd Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Tue, 14 May 2013 22:51:11 +0000 Subject: Further fix for memory leaks in Freestyle Python API components: - StrokeAttribute thickness setter - BezierCurve (used from within BezierCurveShader) - Smoother (used from within SmoothingShader) --- source/blender/freestyle/intern/stroke/AdvancedStrokeShaders.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/blender/freestyle/intern/stroke/AdvancedStrokeShaders.cpp') diff --git a/source/blender/freestyle/intern/stroke/AdvancedStrokeShaders.cpp b/source/blender/freestyle/intern/stroke/AdvancedStrokeShaders.cpp index 1279d1824fb..2215bd9df02 100644 --- a/source/blender/freestyle/intern/stroke/AdvancedStrokeShaders.cpp +++ b/source/blender/freestyle/intern/stroke/AdvancedStrokeShaders.cpp @@ -214,6 +214,13 @@ Smoother::Smoother(Stroke &ioStroke) _safeTest = (_nbVertices > 4); } +Smoother::~Smoother() +{ + delete[] _vertex; + delete[] _curvature; + delete[] _normal; +} + void Smoother::smooth(int nbIteration, real iFactorPoint, real ifactorCurvature, real iFactorCurvatureDifference, real iAnisoPoint, real iAnisoNormal, real iAnisoCurvature, real iCarricatureFactor) { -- cgit v1.2.3