shell,compositor-x11: Fix trivial memory leaks

Signed-off-by: Ryo Munakata <ryomnktml@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
Ryo Munakata 2015-03-08 19:17:06 +09:00 committed by Pekka Paalanen
parent 493d979e57
commit 76fb7ec272
2 changed files with 4 additions and 0 deletions

View file

@ -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);

View file

@ -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