Prevent DJUI menu from getting stuck when pressing B and start

This commit is contained in:
MysterD 2022-02-21 00:08:20 -08:00
parent db655c6746
commit 804bee1ff7
1 changed files with 5 additions and 0 deletions

View File

@ -151,6 +151,11 @@ void djui_panel_shutdown(void) {
panel = next; panel = next;
} }
if (sPanelRemoving != NULL) {
djui_base_destroy(sPanelRemoving->base);
free(sPanelRemoving);
}
sPanelList = NULL; sPanelList = NULL;
sPanelRemoving = NULL; sPanelRemoving = NULL;
sMoveAmount = 0; sMoveAmount = 0;