Skip to content
Commit 2ec15ebf authored by Pekka Paalanen's avatar Pekka Paalanen
Browse files

libweston: fix crash on never used output's tear-down



weston_output_enable() initializes the list, but weston_output_release()
maybe be called even if the output was never enabled, triggering the
assert due to uninitialized (actually NULL) list head.

This can be triggered with a bad weston.ini, for example using an
invalid output transform value.

Check in weston_output_disable() instead, but because it too may be
called for non-enabled output, only if it was actually enabled.

Fixes: 1a4f87de
	"libweston: introduce weston_paint_node"

Signed-off-by: default avatarPekka Paalanen <pekka.paalanen@collabora.com>
parent 0750ceae
Loading
Loading
Loading
Pipeline #396580 passed with stages
in 4 minutes and 47 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