xcb: free a randr monitors pointer after usage

This amends 9a4c98e55659b32db984612e6247ac193812a502.

Fixes: QTBUG-101302
Change-Id: Ia7a2f82550843a90a5e101788e3835bf3332f697
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
(cherry picked from commit 404c5dc49fca9fdded44df6e7810d3ac8cdd970e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Liang Qi 2022-02-28 11:09:09 +01:00 committed by Qt Cherry-pick Bot
parent 33f8df80f9
commit 0b0520f233

View File

@ -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;