Small crash fix

This commit is contained in:
Agent X 2024-07-01 10:44:07 -04:00
parent b487527339
commit 95738ccfd1

View file

@ -458,5 +458,7 @@ void djui_panel_player_create(struct DjuiBase* caller) {
}
struct DjuiPanel* p = djui_panel_add(caller, panel, NULL);
p->on_panel_destroy = djui_panel_player_destroy;
if (p != NULL) {
p->on_panel_destroy = djui_panel_player_destroy;
}
}