[client] imgui: don't free the IniFilename until imgui destruction

This commit is contained in:
Geoffrey McRae 2021-08-01 00:55:36 +10:00
parent 7c3c68b84b
commit 66df99f5fd

View File

@ -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[])