Fix memory leak when calling new driver eyedropper

Would return OPERATOR_RUNNING_MODAL for non-modal operator.
This commit is contained in:
Julian Eisel 2016-03-31 16:18:04 +02:00
parent de6af2f02a
commit 60534ee56b

@ -751,7 +751,9 @@ static int add_driver_button_exec(bContext *C, wmOperator *op)
wmOperatorType *ot = WM_operatortype_find("UI_OT_eyedropper_driver", true);
/* XXX: We assume that it's fine to use the same set of properties, since they're actually the same... */
return WM_operator_name_call_ptr(C, ot, WM_OP_INVOKE_DEFAULT, op->ptr);
WM_operator_name_call_ptr(C, ot, WM_OP_INVOKE_DEFAULT, op->ptr);
return OPERATOR_FINISHED;
}
}