Fixed memory leaks when closing Blender without exiting Armature EditMode first.

Ton/Brecht - mesh editmode (and a few others I think) are still leaking in this case.
This commit is contained in:
2009-02-09 01:33:50 +00:00
parent 5e0c553b15
commit 0139d9d121
2 changed files with 8 additions and 1 deletions

View File

@@ -132,6 +132,14 @@ void free_armature(bArmature *arm)
if (arm) {
/* unlink_armature(arm);*/
free_bones(arm);
/* free editmode data */
if (arm->edbo) {
BLI_freelistN(arm->edbo);
MEM_freeN(arm->edbo);
arm->edbo= NULL;
}
}
}

View File

@@ -3228,7 +3228,6 @@ void extrude_armature(Scene *scene, int forked)
* appropriate ways), and two separate ones.
*/
/* context; editmode armature */
static int armature_subdivide_exec(bContext *C, wmOperator *op)
{
Object *obedit= CTX_data_edit_object(C);