Fix memory leak in Normals from Faces operator
authorCampbell Barton <ideasman42@gmail.com>
Mon, 20 May 2019 22:03:29 +0000 (08:03 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 20 May 2019 22:03:29 +0000 (08:03 +1000)
source/blender/editors/mesh/editmesh_tools.c

index a871bd35f16ef08ea48cf0af1373ba516b8321e3..a1ebcff31aa3111f44d1aac65a5e3011f3244272 100644 (file)
@@ -8834,6 +8834,7 @@ static int edbm_set_normals_from_faces_exec(bContext *C, wmOperator *op)
     MEM_freeN(vnors);
     EDBM_update_generic(em, true, false);
   }
+  MEM_freeN(objects);
 
   return OPERATOR_FINISHED;
 }