[PATCH wayland 5/8] client: release display queue in wl_display_disconnect()

Marek Chalupa mchqwerty at gmail.com
Fri Dec 19 05:53:04 PST 2014


Don't leak events, not even on exit

Signed-off-by: Marek Chalupa <mchqwerty at gmail.com>
---
 src/wayland-client.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/wayland-client.c b/src/wayland-client.c
index 9e8bdfe..21799cd 100644
--- a/src/wayland-client.c
+++ b/src/wayland-client.c
@@ -864,6 +864,7 @@ wl_display_disconnect(struct wl_display *display)
 	wl_connection_destroy(display->connection);
 	wl_map_release(&display->objects);
 	wl_event_queue_release(&display->default_queue);
+	wl_event_queue_release(&display->display_queue);
 	pthread_mutex_destroy(&display->mutex);
 	pthread_cond_destroy(&display->reader_cond);
 	close(display->fd);
-- 
2.1.0



More information about the wayland-devel mailing list