Skip to content

libweston: fix crash when a client queries a destroyed output

Michael Olbrich requested to merge mol/weston:destroyed-output into main

A client can call get_xdg_output() at any time. If the output was destroyed, then all output resources are orphaned. This includes clearing the user data of the resource. This can happen, for example, when a monitor or HDMI switch quickly toggles the HDMI hotplug pin.

So check if a head is associated with the resource. If not, just create the resource and then return immediately.

Merge request reports

Loading