From 804bee1ff7bf9ad253ed9dceed039404e188f437 Mon Sep 17 00:00:00 2001 From: MysterD Date: Mon, 21 Feb 2022 00:08:20 -0800 Subject: [PATCH] Prevent DJUI menu from getting stuck when pressing B and start --- src/pc/djui/djui_panel.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pc/djui/djui_panel.c b/src/pc/djui/djui_panel.c index 92569826..2f2e5c29 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;