[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 authored and Geoffrey McRae committed 2021-09-11 11:52:52 +10:00
1 parent 09d93abf1a
commit 72f3a9f3cf
2 files changed
+8 -7

No files matched your search

+1
View File
@@ -130,6 +130,7 @@ static void waylandFree(void)
{
waylandIdleFree();
waylandWindowFree();
waylandPresentationFree();
waylandInputFree();
waylandOutputFree();
waylandRegistryFree();
+7 -7
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