2.5
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:
		@@ -132,6 +132,14 @@ void free_armature(bArmature *arm)
 | 
				
			|||||||
	if (arm) {
 | 
						if (arm) {
 | 
				
			||||||
		/*		unlink_armature(arm);*/
 | 
							/*		unlink_armature(arm);*/
 | 
				
			||||||
		free_bones(arm);
 | 
							free_bones(arm);
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
							/* free editmode data */
 | 
				
			||||||
 | 
							if (arm->edbo) {
 | 
				
			||||||
 | 
								BLI_freelistN(arm->edbo);
 | 
				
			||||||
 | 
								
 | 
				
			||||||
 | 
								MEM_freeN(arm->edbo);
 | 
				
			||||||
 | 
								arm->edbo= NULL;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3228,7 +3228,6 @@ void extrude_armature(Scene *scene, int forked)
 | 
				
			|||||||
 * appropriate ways), and two separate ones.
 | 
					 * appropriate ways), and two separate ones.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* context; editmode armature */
 | 
					 | 
				
			||||||
static int armature_subdivide_exec(bContext *C, wmOperator *op)
 | 
					static int armature_subdivide_exec(bContext *C, wmOperator *op)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	Object *obedit= CTX_data_edit_object(C);
 | 
						Object *obedit= CTX_data_edit_object(C);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user