Fix memory leak, closing a window didn't free gestures

Exposed by test file in T71718
This commit is contained in:
2019-11-26 20:56:08 +11:00
parent 1fbca07634
commit fa1a946d4f
3 changed files with 16 additions and 3 deletions

View File

@@ -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 */