weston-test: fix leak on compositor destroy
This fixes leaks in the weston-test plugin highlighted in issue #300 (closed).
(1/2): Set a false
as the deafult value for no_outputs
in load_headless_backend
. This was found by running valgrind on a test executable with --show-error-list=yes
. Maybe this went unnoticed because GCC zeroes out the stack in debug builds (not too confident about this) or because this option is always set?
(2/2) Free up resources allocated in compositor destroy callback in weston-plugin. The touch devices and seat are released if created. The weston_test
struct is unconditionally freed since it always created by the plugin.