[Bf-blender-cvs] [fcdd851858a] master: Fix memory leak in loop-cut error case
Campbell Barton
noreply at git.blender.org
Wed Oct 2 23:40:47 CEST 2019
Commit: fcdd851858a61dbc7ec8cf79c0b9d022bb68f896
Author: Campbell Barton
Date: Thu Oct 3 07:30:18 2019 +1000
Branches: master
https://developer.blender.org/rBfcdd851858a61dbc7ec8cf79c0b9d022bb68f896
Fix memory leak in loop-cut error case
===================================================================
M source/blender/editors/mesh/editmesh_loopcut.c
===================================================================
diff --git a/source/blender/editors/mesh/editmesh_loopcut.c b/source/blender/editors/mesh/editmesh_loopcut.c
index 3be94cf99c1..3c3e91e8afe 100644
--- a/source/blender/editors/mesh/editmesh_loopcut.c
+++ b/source/blender/editors/mesh/editmesh_loopcut.c
@@ -386,7 +386,6 @@ static int loopcut_init(bContext *C, wmOperator *op, const wmEvent *event)
bool ok = true;
if (is_interactive == false) {
if (exec_data.base_index >= bases_len) {
- return OPERATOR_CANCELLED;
ok = false;
}
else {
More information about the Bf-blender-cvs
mailing list