1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Robin Ebert <ebertrobin2002@gmail.com>
3 Date: Wed, 25 Jan 2023 17:31:46 +0100
4 Subject: [PATCH] Destroy all created wayland object in terminateDisplay
7 src/wayland-egldisplay.c | 8 ++++++++
8 1 file changed, 8 insertions(+)
10 diff --git a/src/wayland-egldisplay.c b/src/wayland-egldisplay.c
11 index aaf0ff653217..284d2add762c 100644
12 --- a/src/wayland-egldisplay.c
13 +++ b/src/wayland-egldisplay.c
14 @@ -412,6 +412,14 @@ static EGLBoolean terminateDisplay(WlEglDisplay *display, EGLBoolean globalTeard
15 wl_eglstream_display_destroy(display->wlStreamDpy);
16 display->wlStreamDpy = NULL;
18 + if (display->wlStreamCtl) {
19 + wl_eglstream_controller_destroy(display->wlStreamCtl);
20 + display->wlStreamCtl = NULL;
22 + if (display->wlDmaBuf) {
23 + zwp_linux_dmabuf_v1_destroy(display->wlDmaBuf);
24 + display->wlDmaBuf = NULL;
26 if (display->wlEventQueue) {
27 wl_event_queue_destroy(display->wlEventQueue);
28 display->wlEventQueue = NULL;