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:
@ -1279,8 +1279,11 @@ meta_xwayland_set_primary_output (MetaX11Display *x11_display)
|
|||||||
{
|
{
|
||||||
XRRSetOutputPrimary (xdisplay, DefaultRootWindow (xdisplay),
|
XRRSetOutputPrimary (xdisplay, DefaultRootWindow (xdisplay),
|
||||||
output_id);
|
output_id);
|
||||||
|
XRRFreeOutputInfo (xrandr_output);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
XRRFreeOutputInfo (xrandr_output);
|
||||||
}
|
}
|
||||||
mtk_x11_error_trap_pop (x11_display->xdisplay);
|
mtk_x11_error_trap_pop (x11_display->xdisplay);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user