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);