[Bf-blender-cvs] [bef7d67cf51] blender2.8: Triangulate operator: Free memleak

Dalai Felinto noreply at git.blender.org
Thu Apr 19 19:21:18 CEST 2018


Commit: bef7d67cf510114c3e6270368d20463a13928357
Author: Dalai Felinto
Date:   Thu Apr 19 19:20:18 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBbef7d67cf510114c3e6270368d20463a13928357

Triangulate operator: Free memleak

The leak was introduced in the recent changes to
support multiple-object editing.

===================================================================

M	source/blender/editors/mesh/editmesh_tools.c

===================================================================

diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c
index dbf38864730..7f765b4b9bd 100644
--- a/source/blender/editors/mesh/editmesh_tools.c
+++ b/source/blender/editors/mesh/editmesh_tools.c
@@ -4206,6 +4206,8 @@ static int edbm_quads_convert_to_tris_exec(bContext *C, wmOperator *op)
 		EDBM_update_generic(em, true, true);
 	}
 
+	MEM_freeN(objects);
+
 	return OPERATOR_FINISHED;
 }



More information about the Bf-blender-cvs mailing list