Skip to content
Commit 3866ecc5 authored by Michael Olbrich's avatar Michael Olbrich Committed by Marius Vlad
Browse files

libweston: fix crash when a client queries a destroyed output



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.

Signed-off-by: default avatarMichael Olbrich <m.olbrich@pengutronix.de>
parent 67253b30
Loading
Loading
Loading
Pipeline #1323160 passed with stages
in 8 minutes and 18 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment