diff --git a/src/pc/djui/djui_panel_player.c b/src/pc/djui/djui_panel_player.c index 889b8b4d..8ccc9dd0 100644 --- a/src/pc/djui/djui_panel_player.c +++ b/src/pc/djui/djui_panel_player.c @@ -458,7 +458,5 @@ void djui_panel_player_create(struct DjuiBase* caller) { } struct DjuiPanel* p = djui_panel_add(caller, panel, NULL); - if (p != NULL) { - p->on_panel_destroy = djui_panel_player_destroy; - } + p->on_panel_destroy = djui_panel_player_destroy; }