diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2016-03-31 17:18:04 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2016-03-31 17:27:16 +0300 |
commit | 60534ee56b6fc6fb22266b942bfba82bc9727f6a (patch) | |
tree | c7f88cd80a2a1246ce8839d1980fec0ddfe5d16d /source/blender/editors/animation | |
parent | de6af2f02a716937f8cb9f3331a99b9078232c05 (diff) |
Fix memory leak when calling new driver eyedropper
Would return OPERATOR_RUNNING_MODAL for non-modal operator.
Diffstat (limited to 'source/blender/editors/animation')
-rw-r--r-- | source/blender/editors/animation/drivers.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } } |