From 66df99f5fda9ed619550083e92eb7fdf148b28cb Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sun, 1 Aug 2021 00:55:36 +1000 Subject: [PATCH] [client] imgui: don't free the IniFilename until imgui destruction --- client/src/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/src/main.c b/client/src/main.c index dc7653f1..6b67ac92 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -1158,8 +1158,6 @@ static void lg_shutdown(void) g_state.overlays = NULL; } - free(g_state.imGuiIni); - if (g_state.frameEvent) { lgFreeEvent(g_state.frameEvent); @@ -1215,6 +1213,7 @@ static void lg_shutdown(void) free(g_state.fontName); igDestroyContext(NULL); + free(g_state.imGuiIni); } int main(int argc, char * argv[])