db-move: moved polari from [testing] to [extra] (x86_64)
[arch-packages.git] / egl-wayland / repos / extra-x86_64 / 0002-Fix-wrong-destruction-order-for-event-queue.patch
blob994732a9b75153f4b675fb8548a60ee432f625e3
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: q234rty <q23456yuiop@gmail.com>
3 Date: Fri, 7 Apr 2023 18:08:03 +0800
4 Subject: [PATCH] Fix wrong destruction order for event queue
6 ---
7 src/wayland-egldisplay.c | 6 +++---
8 1 file changed, 3 insertions(+), 3 deletions(-)
10 diff --git a/src/wayland-egldisplay.c b/src/wayland-egldisplay.c
11 index 284d2add762c..99e6e3b82953 100644
12 --- a/src/wayland-egldisplay.c
13 +++ b/src/wayland-egldisplay.c
14 @@ -481,12 +481,12 @@ static void getServerProtocolsInfo(struct wl_display *nativeDpy,
18 + if (wlRegistry) {
19 + wl_registry_destroy(wlRegistry);
20 + }
21 if (queue) {
22 wl_event_queue_destroy(queue);
24 - if (wlRegistry) {
25 - wl_registry_destroy(wlRegistry);
26 - }
29 EGLDisplay wlEglGetPlatformDisplayExport(void *data,