Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-05-14 02:50:12 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-05-14 02:50:12 +0400
commit1a91af691e984714204aa55326245c79a0b06fb8 (patch)
tree62597f27b893fdcb0ab4f61fdcaa44053807097d /source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp
parentcd3283f573164bd30a2dd926bb6475da311eb188 (diff)
Fix for a memory leak during Freestyle stroke shading.
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp')
-rw-r--r--source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp b/source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp
index c0372a10aef..eb175eb7bca 100644
--- a/source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp
+++ b/source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp
@@ -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;
}