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
This would segfault trying to remove the uninitialized destroy listener from a list it was never added to.
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.
Edited by Philipp Zabel