Fix for a memory leak during Freestyle stroke shading.
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Mon, 13 May 2013 22:50:12 +0000 (22:50 +0000)
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Mon, 13 May 2013 22:50:12 +0000 (22:50 +0000)
source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp

index c0372a10aef933932fff8cd09ef1c826575d3263..eb175eb7bcade820fdeaf8d322de35efac0e387a 100644 (file)
@@ -532,6 +532,7 @@ static int StrokeAttribute_color_set(BPy_StrokeAttribute *self, PyObject *value,
                return -1;
        }
        self->sa->setColor(v->x(), v->y(), v->z());
+       delete v;
        return 0;
 }