Fix memory leaks

Fix a couple leaks caught by valgrind.
This commit is contained in:
Scott Moreau 2013-03-07 10:15:17 -07:00 committed by Kristian Høgsberg
parent 1c169ffdec
commit 976a050f8f
2 changed files with 3 additions and 0 deletions

View File

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

View File

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