[client] imgui: don't free the IniFilename until imgui destruction
This commit is contained in:
1 parent
7c3c68b84b
commit
66df99f5fd
1 file changed
+1
-2
+1
-2
@@ -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[])
|
||||
|
||||
Reference in new issue
Block a user