[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [22577] branches/blender2.5/blender/source /blender/editors/sculpt_paint/sculpt.c: 2.5/Sculpt:
Nicholas Bishop
nicholasbishop at gmail.com
Mon Aug 17 19:49:33 CEST 2009
Revision: 22577
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22577
Author: nicholasbishop
Date: 2009-08-17 19:49:33 +0200 (Mon, 17 Aug 2009)
Log Message:
-----------
2.5/Sculpt:
* Fixed a mem leak with the grab brush
Modified Paths:
--------------
branches/blender2.5/blender/source/blender/editors/sculpt_paint/sculpt.c
Modified: branches/blender2.5/blender/source/blender/editors/sculpt_paint/sculpt.c
===================================================================
--- branches/blender2.5/blender/source/blender/editors/sculpt_paint/sculpt.c 2009-08-17 17:43:49 UTC (rev 22576)
+++ branches/blender2.5/blender/source/blender/editors/sculpt_paint/sculpt.c 2009-08-17 17:49:33 UTC (rev 22577)
@@ -1191,12 +1191,15 @@
static void sculpt_cache_free(StrokeCache *cache)
{
+ int i;
if(cache->orig_norms)
MEM_freeN(cache->orig_norms);
if(cache->face_norms)
MEM_freeN(cache->face_norms);
if(cache->mats)
MEM_freeN(cache->mats);
+ for(i = 0; i < 8; ++i)
+ BLI_freelistN(&cache->grab_active_verts[i]);
MEM_freeN(cache);
}
More information about the Bf-blender-cvs
mailing list