From fcfc83f6ae4867b26799ae498d355281bad6bb1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Tue, 28 Feb 2012 14:29:19 -0500 Subject: [PATCH] clients: Use wl_display_disconnect() --- clients/simple-egl.c | 2 +- clients/simple-shm.c | 2 +- clients/window.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clients/simple-egl.c b/clients/simple-egl.c index 78fa0a55..9893a82f 100644 --- a/clients/simple-egl.c +++ b/clients/simple-egl.c @@ -382,7 +382,7 @@ main(int argc, char **argv) wl_compositor_destroy(display.compositor); wl_display_flush(display.display); - wl_display_destroy(display.display); + wl_display_disconnect(display.display); return 0; } diff --git a/clients/simple-shm.c b/clients/simple-shm.c index 8eca2983..c94ede32 100644 --- a/clients/simple-shm.c +++ b/clients/simple-shm.c @@ -236,7 +236,7 @@ destroy_display(struct display *display) wl_compositor_destroy(display->compositor); wl_display_flush(display->display); - wl_display_destroy(display->display); + wl_display_disconnect(display->display); free(display); } diff --git a/clients/window.c b/clients/window.c index c8c6ebea..04692c04 100644 --- a/clients/window.c +++ b/clients/window.c @@ -3069,7 +3069,7 @@ display_destroy(struct display *display) close(display->epoll_fd); wl_display_flush(display->display); - wl_display_destroy(display->display); + wl_display_disconnect(display->display); free(display); }