diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-11-26 12:56:08 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-11-26 12:58:26 +0300 |
commit | fa1a946d4f3a5e8d010b7eee0a2d93e774fb0009 (patch) | |
tree | 055fe6e350c8ad6adc26957b984c281b2fa42208 /source/blender/windowmanager/WM_api.h | |
parent | 1fbca076341919826bf70f7f1a11752223c75c85 (diff) |
Fix memory leak, closing a window didn't free gestures
Exposed by test file in T71718
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r-- | source/blender/windowmanager/WM_api.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ |