diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-03-22 16:24:41 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-03-22 16:24:41 +0300 |
commit | 21174f28a9cbe2d08b64310e54f734bba6eb1ddb (patch) | |
tree | 30de862753194512ddeadf9f8441e44f9c869243 /source/blender/editors/sculpt_paint/sculpt.c | |
parent | a3ee78b8850230f61bbcce267115bc1b37a3e642 (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.c | 3 |
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); } } |