From 0a9784d09d98aa946458f69d460839f5b81bc633 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 11 Nov 2023 13:15:39 +1100 Subject: [PATCH] [client] main: fix possible dereference of null g_state.ds --- client/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/main.c b/client/src/main.c index b984fbc0..f9a97ae6 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -1816,7 +1816,7 @@ static void lg_shutdown(void) app_releaseAllKeybinds(); ll_free(g_state.bindings); - if (g_state.dsInitialized) + if (g_state.ds && g_state.dsInitialized) g_state.ds->free(); ivshmemClose(&g_state.shm);