From: Ryo Munakata Date: Sun, 8 Mar 2015 10:17:06 +0000 (+0900) Subject: shell,compositor-x11: Fix trivial memory leaks X-Git-Tag: 1.7.91~119 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=76fb7ec2722a16bcb5991dda68f2601b213994cb;p=platform%2Fupstream%2Fweston.git shell,compositor-x11: Fix trivial memory leaks Signed-off-by: Ryo Munakata Reviewed-by: Pekka Paalanen --- diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index aae304d..826692f 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -6453,6 +6453,8 @@ shell_destroy(struct wl_listener *listener, void *data) wl_client_destroy(shell->child.client); } + wl_event_source_remove(shell->screensaver.timer); + wl_list_remove(&shell->idle_listener.link); wl_list_remove(&shell->wake_listener.link); diff --git a/src/compositor-x11.c b/src/compositor-x11.c index aa1e519..e9735c5 100644 --- a/src/compositor-x11.c +++ b/src/compositor-x11.c @@ -1454,6 +1454,8 @@ x11_compositor_get_wm_info(struct x11_compositor *c) if (atom[i] == c->atom.net_wm_state_fullscreen) c->has_net_wm_state_fullscreen = 1; } + + free(reply); } static void