From 60534ee56b6fc6fb22266b942bfba82bc9727f6a Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Thu, 31 Mar 2016 16:18:04 +0200 Subject: Fix memory leak when calling new driver eyedropper Would return OPERATOR_RUNNING_MODAL for non-modal operator. --- source/blender/editors/animation/drivers.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/editors') diff --git a/source/blender/editors/animation/drivers.c b/source/blender/editors/animation/drivers.c index c7412af06d4..d0c749063f0 100644 --- a/source/blender/editors/animation/drivers.c +++ b/source/blender/editors/animation/drivers.c @@ -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; } } -- cgit v1.2.3