mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 22:01:46 +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
2 changed files with 8 additions and 7 deletions
|
@ -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 a new issue