mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-21 21:17:19 +00:00
[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:
parent
09d93abf1a
commit
72f3a9f3cf
@ -130,6 +130,7 @@ static void waylandFree(void)
|
||||
{
|
||||
waylandIdleFree();
|
||||
waylandWindowFree();
|
||||
waylandPresentationFree();
|
||||
waylandInputFree();
|
||||
waylandOutputFree();
|
||||
waylandRegistryFree();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user