aboutsummaryrefslogtreecommitdiffstats
path: root/tests/queue-test.c
diff options
context:
space:
mode:
authorMarek Chalupa <mchqwerty@gmail.com>2014-08-21 12:07:06 +0200
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2014-08-21 14:44:39 +0300
commit8cf7a23e57495f079c9b2b773ac36646a47905d6 (patch)
tree7b71aa1fb0aa396f9141d6703b8ab93f897b36a4 /tests/queue-test.c
parentserver: Don't expose wl_display as a global (diff)
downloadwayland-8cf7a23e57495f079c9b2b773ac36646a47905d6.tar
wayland-8cf7a23e57495f079c9b2b773ac36646a47905d6.tar.gz
wayland-8cf7a23e57495f079c9b2b773ac36646a47905d6.tar.bz2
wayland-8cf7a23e57495f079c9b2b773ac36646a47905d6.tar.lz
wayland-8cf7a23e57495f079c9b2b773ac36646a47905d6.tar.xz
wayland-8cf7a23e57495f079c9b2b773ac36646a47905d6.tar.zst
wayland-8cf7a23e57495f079c9b2b773ac36646a47905d6.zip
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>
Diffstat (limited to 'tests/queue-test.c')
-rw-r--r--tests/queue-test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/queue-test.c b/tests/queue-test.c
index f7ebc2b..3de8924 100644
--- a/tests/queue-test.c
+++ b/tests/queue-test.c
@@ -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;