2022-10-31 10:20:04 +00:00
|
|
|
From b1a11fe937fc91aa9784df31253637dbad8ae97b Mon Sep 17 00:00:00 2001
|
2022-07-14 07:02:36 +00:00
|
|
|
From: Ulf Hermann <ulf.hermann@qt.io>
|
|
|
|
Date: Tue, 22 Feb 2022 12:31:08 +0100
|
2022-10-31 10:20:04 +00:00
|
|
|
Subject: [PATCH 34/49] Reduce memory leakage
|
2022-07-14 07:02:36 +00:00
|
|
|
|
|
|
|
We need to clean up the event queue when we're done.
|
|
|
|
|
|
|
|
Change-Id: I13a9eb77e978f4eab227a3a28dab8ebc8de94405
|
|
|
|
Reviewed-by: David Edmundson <davidedmundson@kde.org>
|
|
|
|
(cherry picked from commit 1264e5f565d8fb7ac200e4b00531ab876922458f)
|
|
|
|
---
|
|
|
|
src/client/qwaylanddisplay.cpp | 3 +++
|
|
|
|
1 file changed, 3 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/src/client/qwaylanddisplay.cpp b/src/client/qwaylanddisplay.cpp
|
2022-09-20 15:38:03 +00:00
|
|
|
index 41a44e4b..622ffe41 100644
|
2022-07-14 07:02:36 +00:00
|
|
|
--- a/src/client/qwaylanddisplay.cpp
|
|
|
|
+++ b/src/client/qwaylanddisplay.cpp
|
|
|
|
@@ -379,6 +379,9 @@ QWaylandDisplay::~QWaylandDisplay(void)
|
|
|
|
#endif
|
|
|
|
if (mDisplay)
|
|
|
|
wl_display_disconnect(mDisplay);
|
|
|
|
+
|
|
|
|
+ if (m_frameEventQueue)
|
|
|
|
+ wl_event_queue_destroy(m_frameEventQueue);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Steps which is called just after constructor. This separates registry_global() out of the constructor
|
|
|
|
--
|
2022-09-20 15:38:03 +00:00
|
|
|
2.37.3
|
2022-07-14 07:02:36 +00:00
|
|
|
|