summaryrefslogtreecommitdiff
blob: 9611ac7dc0daba14fa929dc40698cc7b91dd845d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
https://bugs.gentoo.org/904072
https://github.com/NVIDIA/egl-wayland/pull/79

From 979200d803c5ed9cb08ac752ac828f28753fc445 Mon Sep 17 00:00:00 2001
From: q234rty <q23456yuiop@gmail.com>
Date: Fri, 7 Apr 2023 18:08:03 +0800
Subject: [PATCH] Fix wrong destruction order for event queue
--- a/src/wayland-egldisplay.c
+++ b/src/wayland-egldisplay.c
@@ -704,12 +704,12 @@ static void getServerProtocolsInfo(struct wl_display *nativeDpy,
         }
     }
 
+    if (wlRegistry) {
+        wl_registry_destroy(wlRegistry);
+    }
     if (queue) {
         wl_event_queue_destroy(queue);
     }
-    if (wlRegistry) {
-       wl_registry_destroy(wlRegistry);
-    }
 }
 
 EGLDisplay wlEglGetPlatformDisplayExport(void *data,