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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2010-03-22 16:24:41 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-03-22 16:24:41 +0300
commit21174f28a9cbe2d08b64310e54f734bba6eb1ddb (patch)
tree30de862753194512ddeadf9f8441e44f9c869243 /source/blender/editors/sculpt_paint/sculpt.c
parenta3ee78b8850230f61bbcce267115bc1b37a3e642 (diff)
Sculpt: fix memory leak with anchored stroke option.
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt.c')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index effe3cb1428..a24e9d86666 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -1988,6 +1988,9 @@ static void sculpt_restore_mesh(Sculpt *sd, SculptSession *ss)
for(i = 0; i < ss->totface; ++i, fn += 3)
copy_v3_v3(fn, cache->face_norms[i]);
}
+
+ if(nodes)
+ MEM_freeN(nodes);
}
}