Sculpt: fix memory leak with anchored stroke option.

This commit is contained in:
Brecht Van Lommel
2010-03-22 13:24:41 +00:00
parent a3ee78b885
commit 21174f28a9

View File

@@ -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);
}
}