tests: release resources on compositor destruction
Releases touch devices and seat if they were allocated, clean up the layers and free the weston_test structure. Signed-off-by: Guillaume Champagne <champagne.guillaume.c@gmail.com>
This commit is contained in:
committed by
Pekka Paalanen
parent
9096dee405
commit
7bce28b543
+7
-1
@@ -794,8 +794,14 @@ handle_compositor_destroy(struct wl_listener *listener,
|
|||||||
client_thread_join(test);
|
client_thread_join(test);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (test->is_seat_initialized)
|
||||||
|
test_seat_release(test);
|
||||||
|
|
||||||
|
wl_list_remove(&test->layer.view_list.link);
|
||||||
|
wl_list_remove(&test->layer.link);
|
||||||
|
|
||||||
weston_log_scope_destroy(test->log);
|
weston_log_scope_destroy(test->log);
|
||||||
test->log = NULL;
|
free(test);
|
||||||
}
|
}
|
||||||
|
|
||||||
WL_EXPORT int
|
WL_EXPORT int
|
||||||
|
|||||||
Reference in New Issue
Block a user