svn merge ^/trunk/blender -r43564:43609
[blender.git] / source / blender / editors / util / ed_util.c
index a40c6cfa42f9b2441e5c7b89a08bed3aac394f7f..7f301123ab8a775ea7e1482867fbad2194f3a114 100644 (file)
@@ -108,10 +108,10 @@ void ED_editors_exit(bContext *C)
                        if(ob) {
                                if(ob->type==OB_MESH) {
                                        Mesh *me= ob->data;
-                                       if(me->edit_mesh) {
-                                               free_editMesh(me->edit_mesh);
-                                               MEM_freeN(me->edit_mesh);
-                                               me->edit_mesh= NULL;
+                                       if(me->edit_btmesh) {
+                                               EDBM_FreeEditBMesh(me->edit_btmesh);
+                                               MEM_freeN(me->edit_btmesh);
+                                               me->edit_btmesh= NULL;
                                        }
                                }
                                else if(ob->type==OB_ARMATURE) {