Commit 6fd37194bc178dacbda1cb222fb47a44031b2636

David Edmundson 2021-04-07T16:03:41

wayland: Fix leaked zxdg_decoration_manager

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/video/wayland/SDL_waylandvideo.c b/src/video/wayland/SDL_waylandvideo.c
index b3b4691..e017747 100644
--- a/src/video/wayland/SDL_waylandvideo.c
+++ b/src/video/wayland/SDL_waylandvideo.c
@@ -564,6 +564,9 @@ Wayland_VideoQuit(_THIS)
     if (data->shell.zxdg)
         zxdg_shell_v6_destroy(data->shell.zxdg);
 
+    if (data->decoration_manager)
+        zxdg_decoration_manager_v1_destroy(data->decoration_manager);
+
     if (data->compositor)
         wl_compositor_destroy(data->compositor);