Cleanup: free keymap status when not used
This commit is contained in:
parent
f9eb2f29fe
commit
9f72a450a2
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue