mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-31 22:25:25 -04:00
tests: remove leaks from queue-test
Destroy all objects that we have created Signed-off-by: Marek Chalupa <mchqwerty@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
parent
78d8047407
commit
8cf7a23e57
1 changed files with 5 additions and 0 deletions
|
|
@ -86,6 +86,8 @@ client_test_proxy_destroy(void)
|
|||
|
||||
client_assert(counter == 1);
|
||||
|
||||
/* don't destroy the registry, we have already destroyed them
|
||||
* in the global handler */
|
||||
wl_display_disconnect(display);
|
||||
|
||||
return 0;
|
||||
|
|
@ -152,6 +154,7 @@ client_test_multiple_queues(void)
|
|||
while (!state.done && !ret)
|
||||
ret = wl_display_dispatch_queue(state.display, queue);
|
||||
|
||||
wl_event_queue_destroy(queue);
|
||||
wl_display_disconnect(state.display);
|
||||
|
||||
return ret == -1 ? -1 : 0;
|
||||
|
|
@ -221,6 +224,8 @@ client_test_queue_roundtrip(void)
|
|||
|
||||
wl_callback_destroy(callback1);
|
||||
wl_callback_destroy(callback2);
|
||||
wl_event_queue_destroy(queue);
|
||||
|
||||
wl_display_disconnect(display);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue