Commit 8cf7a23e authored by Marek Chalupa's avatar Marek Chalupa Committed by Pekka Paalanen
Browse files

tests: remove leaks from queue-test



Destroy all objects that we have created
Signed-off-by: default avatarMarek Chalupa <mchqwerty@gmail.com>
Reviewed-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
parent 78d80474
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment