From 404c5dc49fca9fdded44df6e7810d3ac8cdd970e Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Mon, 28 Feb 2022 11:09:09 +0100 Subject: [PATCH] xcb: free a randr monitors pointer after usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This amends 9a4c98e55659b32db984612e6247ac193812a502. Pick-to: 6.3 Fixes: QTBUG-101302 Change-Id: Ia7a2f82550843a90a5e101788e3835bf3332f697 Reviewed-by: Tor Arne Vestbø --- src/plugins/platforms/xcb/qxcbconnection_screens.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/platforms/xcb/qxcbconnection_screens.cpp b/src/plugins/platforms/xcb/qxcbconnection_screens.cpp index 0a45b1b0c9e..eef563917c2 100644 --- a/src/plugins/platforms/xcb/qxcbconnection_screens.cpp +++ b/src/plugins/platforms/xcb/qxcbconnection_screens.cpp @@ -536,6 +536,7 @@ void QXcbConnection::initializeScreensFromMonitor(xcb_screen_iterator_t *it, int xcb_randr_monitor_info_next(&monitor_iter); } + free(monitors_r); if (siblings.isEmpty()) { QXcbScreen *screen = nullptr;