From: Pekka Paalanen Date: Tue, 4 Dec 2012 14:01:15 +0000 (+0200) Subject: clients: destroy wl_registry on exit X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aac1c1333213afd678bb1b1390db43670507c19c;p=profile%2Fivi%2Fweston-ivi-shell.git clients: destroy wl_registry on exit Plug an insignificant memory leak in demo programs that bother to clean up at all. Signed-off-by: Pekka Paalanen --- diff --git a/clients/simple-egl.c b/clients/simple-egl.c index 12bc93d..c073330 100644 --- a/clients/simple-egl.c +++ b/clients/simple-egl.c @@ -676,6 +676,7 @@ main(int argc, char **argv) if (display.compositor) wl_compositor_destroy(display.compositor); + wl_registry_destroy(display.registry); wl_display_flush(display.display); wl_display_disconnect(display.display); diff --git a/clients/simple-shm.c b/clients/simple-shm.c index 5bc26bf..831f9a4 100644 --- a/clients/simple-shm.c +++ b/clients/simple-shm.c @@ -369,6 +369,7 @@ destroy_display(struct display *display) if (display->compositor) wl_compositor_destroy(display->compositor); + wl_registry_destroy(display->registry); wl_display_flush(display->display); wl_display_disconnect(display->display); free(display); diff --git a/clients/window.c b/clients/window.c index 20d09d5..c7767ae 100644 --- a/clients/window.c +++ b/clients/window.c @@ -4314,6 +4314,7 @@ display_destroy(struct display *display) wl_data_device_manager_destroy(display->data_device_manager); wl_compositor_destroy(display->compositor); + wl_registry_destroy(display->registry); close(display->epoll_fd);