Fix memory leaks

Fix a couple leaks caught by valgrind.
dev
Scott Moreau 12 years ago committed by Kristian Høgsberg
parent 1c169ffdec
commit 976a050f8f
  1. 2
      src/gl-renderer.c
  2. 1
      src/shell.c

@ -1707,6 +1707,8 @@ gl_renderer_destroy(struct weston_compositor *ec)
eglTerminate(gr->egl_display); eglTerminate(gr->egl_display);
eglReleaseThread(); eglReleaseThread();
free(gr);
} }
static int static int

@ -2002,6 +2002,7 @@ destroy_shell_surface(struct shell_surface *shsurf)
wl_list_remove(&shsurf->surface_destroy_listener.link); wl_list_remove(&shsurf->surface_destroy_listener.link);
shsurf->surface->configure = NULL; shsurf->surface->configure = NULL;
ping_timer_destroy(shsurf); ping_timer_destroy(shsurf);
free(shsurf->title);
wl_list_remove(&shsurf->link); wl_list_remove(&shsurf->link);
free(shsurf); free(shsurf);

Loading…
Cancel
Save