Skip to content
Commit 1ffcc535 authored by Philipp Zabel's avatar Philipp Zabel Committed by Marius Vlad
Browse files

hmi-controller: Do not call hmi_controller_destroy() from _create()



Move the destroy listener registration to the top, to avoid having
to call hmi_controller_destroy() for cleanup when it fails.

This would segfault trying to remove the destroy listener from a list
when its link was never initialized or inserted into any list.

The failure case can be hit by setting both modules=hmi-controller.so in
weston.ini and --modules=hmi-controller.so on the command line.

Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
parent 463ebda4
Loading
Loading
Loading
Pipeline #935341 passed with stages
in 3 minutes and 45 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