From 898d802c5e9aed8de2dfca1b8443701d7c5869ad Mon Sep 17 00:00:00 2001 From: Sebastian Keller Date: Sun, 1 Sep 2024 11:33:32 +0200 Subject: [PATCH] xwayland: Fix XRROutputInfo leak when setting primary output The call to XRRFreeOutputInfo() seems to have been accidentally dropped. Fixes: 1333d92fa ("xwayland: Set primary monitor using connector name") Part-of: --- src/wayland/meta-xwayland.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wayland/meta-xwayland.c b/src/wayland/meta-xwayland.c index a581bf760..994536e1e 100644 --- a/src/wayland/meta-xwayland.c +++ b/src/wayland/meta-xwayland.c @@ -1279,8 +1279,11 @@ meta_xwayland_set_primary_output (MetaX11Display *x11_display) { XRRSetOutputPrimary (xdisplay, DefaultRootWindow (xdisplay), output_id); + XRRFreeOutputInfo (xrandr_output); break; } + + XRRFreeOutputInfo (xrandr_output); } mtk_x11_error_trap_pop (x11_display->xdisplay);