Cleanup: free keymap status when not used

This commit is contained in:
2018-08-22 17:09:41 +10:00
parent f9eb2f29fe
commit 9f72a450a2

View File

@@ -4383,6 +4383,7 @@ void WM_window_cursor_keymap_status_refresh(bContext *C, wmWindow *win)
bScreen *screen = WM_window_get_active_screen(win);
ScrArea *sa_statusbar = WM_window_status_area_find(win, screen);
if (sa_statusbar == NULL) {
MEM_SAFE_FREE(win->cursor_keymap_status);
return;
}