Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-05-22 08:26:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-22 08:28:14 +0300
commit67cf4cb5ec1e0f964fe41fa6aae80ffceedbf939 (patch)
treeabf9d1269fefe0fc110debd58710276424db3ebf /source/blender/editors/uvedit/uvedit_unwrap_ops.c
parentfeabab6a9e9bfd303d8784938b34e3f89375bebb (diff)
Cleanup: replace MEM_SAFE_FREE -> MEM_freeN
No need to check for NULL in this case.
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_unwrap_ops.c')
-rw-r--r--source/blender/editors/uvedit/uvedit_unwrap_ops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/uvedit/uvedit_unwrap_ops.c b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
index d13a4646a2f..521470d4e5f 100644
--- a/source/blender/editors/uvedit/uvedit_unwrap_ops.c
+++ b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
@@ -839,7 +839,7 @@ static int pack_islands_exec(bContext *C, wmOperator *op)
Object **objects = BKE_view_layer_array_from_objects_in_edit_mode_unique_data_with_uvs(view_layer, &objects_len);
if (!uvedit_have_selection_multi(scene, objects, objects_len, true)) {
- MEM_SAFE_FREE(objects);
+ MEM_freeN(objects);
return OPERATOR_CANCELLED;
}
@@ -856,7 +856,7 @@ static int pack_islands_exec(bContext *C, wmOperator *op)
WM_event_add_notifier(C, NC_GEOM | ND_DATA, obedit->data);
}
- MEM_SAFE_FREE(objects);
+ MEM_freeN(objects);
return OPERATOR_FINISHED;
}
@@ -1357,7 +1357,7 @@ static int unwrap_exec(bContext *C, wmOperator *op)
Object **objects = BKE_view_layer_array_from_objects_in_edit_mode_unique_data(view_layer, &objects_len);
if (!uvedit_have_selection_multi(scene, objects, objects_len, implicit)) {
- MEM_SAFE_FREE(objects);
+ MEM_freeN(objects);
return OPERATOR_CANCELLED;
}
@@ -1418,7 +1418,7 @@ static int unwrap_exec(bContext *C, wmOperator *op)
ED_uvedit_pack_islands_multi(scene, objects, objects_len, true, true, true);
- MEM_SAFE_FREE(objects);
+ MEM_freeN(objects);
return OPERATOR_FINISHED;
}