Fixes for memory leaks when exiting Blender while still in WeightPaint Mode.

This commit is contained in:
2009-12-20 11:04:11 +00:00
parent 4d16275c03
commit 7e16ac8190

View File

@@ -87,9 +87,16 @@ void ED_editors_exit(bContext *C)
// else if(ob->type==OB_MBALL)
// BLI_freelistN(&editelems);
// free_editLatt();
// free_posebuf();
// free_posebuf(); // XXX this is still a global...
}
}
else if(sce->basact && sce->basact->object) {
Object *ob= sce->basact->object;
/* if weight-painting is on, free mesh octree data */
if(ob->mode & OB_MODE_WEIGHT_PAINT)
mesh_octree_table(ob, NULL, NULL, 'e');
}
}
}