compositor: more cleanup on shutdown

Free idle_source, shm, and vertices and indices arrays on compositor
shutdown.

Fixes some Valgrind errors.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
dev
Pekka Paalanen 13 years ago
parent 51c769f32e
commit d1591ae3cc
  1. 7
      compositor/compositor.c

@ -2019,11 +2019,18 @@ wlsc_compositor_shutdown(struct wlsc_compositor *ec)
{ {
struct wlsc_output *output, *next; struct wlsc_output *output, *next;
wl_event_source_remove(ec->idle_source);
/* Destroy all outputs associated with this compositor */ /* Destroy all outputs associated with this compositor */
wl_list_for_each_safe(output, next, &ec->output_list, link) wl_list_for_each_safe(output, next, &ec->output_list, link)
output->destroy(output); output->destroy(output);
wlsc_binding_list_destroy_all(&ec->binding_list); wlsc_binding_list_destroy_all(&ec->binding_list);
wl_shm_finish(ec->shm);
wl_array_release(&ec->vertices);
wl_array_release(&ec->indices);
} }
static int on_term_signal(int signal_number, void *data) static int on_term_signal(int signal_number, void *data)

Loading…
Cancel
Save