1
0
Fork 0

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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3994>
This commit is contained in:
Sebastian Keller 2024-09-01 11:33:32 +02:00
parent d1a1b7bfdd
commit 898d802c5e

View file

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