Commit: 7e1e4889c603a853e39241bceaea0eee5e20d8d5
Author: Siddhartha Jejurkar
Date: Wed Jun 23 20:58:07 2021 +0530
Branches: soc-2021-uv-editor-improvements
https://developer.blender.org/rB7e1e4889c603a853e39241bceaea0eee5e20d8d5
Fix: Release memory before cancelling operator
===================================================================
M source/blender/editors/uvedit/uvedit_unwrap_ops.c
===================================================================
diff --git a/source/blender/editors/uvedit/uvedit_unwrap_ops.c
b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
index ce7e905a412..47c543c4635 100644
--- a/source/blender/editors/uvedit/uvedit_unwrap_ops.c
+++ b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
@@ -1197,6 +1197,7 @@ static int pack_islands_to_area_exec(bContext *C,
wmOperator *op)
* visible in the UV editor
* NOTE : Could be removed/changed */
if ((max_co[0] - min_co[0]) <= 0.001f || (max_co[1] - min_co[1]) <= 0.001f) {
+ MEM_freeN(objects);
return OPERATOR_CANCELLED;
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs