mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-26 07:17:23 +00:00
[client] imgui: don't free the IniFilename until imgui destruction
This commit is contained in:
parent
7c3c68b84b
commit
66df99f5fd
@ -1158,8 +1158,6 @@ static void lg_shutdown(void)
|
|||||||
g_state.overlays = NULL;
|
g_state.overlays = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
free(g_state.imGuiIni);
|
|
||||||
|
|
||||||
if (g_state.frameEvent)
|
if (g_state.frameEvent)
|
||||||
{
|
{
|
||||||
lgFreeEvent(g_state.frameEvent);
|
lgFreeEvent(g_state.frameEvent);
|
||||||
@ -1215,6 +1213,7 @@ static void lg_shutdown(void)
|
|||||||
|
|
||||||
free(g_state.fontName);
|
free(g_state.fontName);
|
||||||
igDestroyContext(NULL);
|
igDestroyContext(NULL);
|
||||||
|
free(g_state.imGuiIni);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char * argv[])
|
int main(int argc, char * argv[])
|
||||||
|
Loading…
Reference in New Issue
Block a user