[client] wayland: free presentation objects

Since the display server owns a graph, it was necessary to move the overlay
graphs destruction so that it happens after display server destruction.
This commit is contained in:
Quantum 2021-09-10 21:17:51 -04:00 committed by Geoffrey McRae
parent 09d93abf1a
commit 72f3a9f3cf
2 changed files with 8 additions and 7 deletions

View File

@ -130,6 +130,7 @@ static void waylandFree(void)
{
waylandIdleFree();
waylandWindowFree();
waylandPresentationFree();
waylandInputFree();
waylandOutputFree();
waylandRegistryFree();

View File

@ -1209,13 +1209,6 @@ static void lg_shutdown(void)
lgmpClientFree(&g_state.lgmp);
if (g_state.overlays)
{
app_freeOverlays();
ll_free(g_state.overlays);
g_state.overlays = NULL;
}
if (g_state.frameEvent)
{
lgFreeEvent(g_state.frameEvent);
@ -1257,6 +1250,13 @@ static void lg_shutdown(void)
if (g_state.dsInitialized)
g_state.ds->free();
if (g_state.overlays)
{
app_freeOverlays();
ll_free(g_state.overlays);
g_state.overlays = NULL;
}
ivshmemClose(&g_state.shm);
// free metrics ringbuffers