From c6be02e0429d5e109a894b6170d0a60ba78e2909 Mon Sep 17 00:00:00 2001 From: David Joslin Date: Wed, 8 Nov 2023 13:51:12 -0800 Subject: [PATCH] Fixed crash in djui_panel_join_lobbies_create() --- src/pc/djui/djui_panel_join_lobbies.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pc/djui/djui_panel_join_lobbies.c b/src/pc/djui/djui_panel_join_lobbies.c index b6dfee70..651f3649 100644 --- a/src/pc/djui/djui_panel_join_lobbies.c +++ b/src/pc/djui/djui_panel_join_lobbies.c @@ -176,6 +176,7 @@ void djui_panel_join_lobbies_create(struct DjuiBase* caller, const char* passwor } struct DjuiPanel* p = djui_panel_add(caller, panel, defaultBase); + if (!p) { return; } p->on_panel_destroy = djui_panel_join_lobbies_on_destroy; }