2.5/Sculpt:

* Fixed a mem leak with the grab brush
This commit is contained in:
Nicholas Bishop
2009-08-17 17:49:33 +00:00
parent 77f60458e2
commit e19e654d84

View File

@@ -1191,12 +1191,15 @@ static float unproject_brush_radius(SculptSession *ss, float offset)
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);
}