diff --git a/src/pc/djui/djui_panel.c b/src/pc/djui/djui_panel.c index 92569826c..2f2e5c293 100644 --- a/src/pc/djui/djui_panel.c +++ b/src/pc/djui/djui_panel.c @@ -151,6 +151,11 @@ void djui_panel_shutdown(void) { panel = next; } + if (sPanelRemoving != NULL) { + djui_base_destroy(sPanelRemoving->base); + free(sPanelRemoving); + } + sPanelList = NULL; sPanelRemoving = NULL; sMoveAmount = 0;