From fa1a946d4f3a5e8d010b7eee0a2d93e774fb0009 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 26 Nov 2019 20:56:08 +1100 Subject: Fix memory leak, closing a window didn't free gestures Exposed by test file in T71718 --- source/blender/windowmanager/WM_api.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/windowmanager/WM_api.h') diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index f7537f5ea9c..44fd9158934 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -623,6 +623,7 @@ void WM_gesture_straightline_cancel(struct bContext *C, struct wmOperator *op); struct wmGesture *WM_gesture_new(struct bContext *C, const struct wmEvent *event, int type); void WM_gesture_end(struct bContext *C, struct wmGesture *gesture); void WM_gestures_remove(struct bContext *C); +void WM_gestures_free_all(struct wmWindow *win); bool WM_gesture_is_modal_first(const struct wmGesture *gesture); /* fileselecting support */ -- cgit v1.2.3