From 976a050f8f150287335773a0549f47a6311e8d40 Mon Sep 17 00:00:00 2001 From: Scott Moreau Date: Thu, 7 Mar 2013 10:15:17 -0700 Subject: [PATCH] Fix memory leaks Fix a couple leaks caught by valgrind. --- src/gl-renderer.c | 2 ++ src/shell.c | 1 + 2 files changed, 3 insertions(+) diff --git a/src/gl-renderer.c b/src/gl-renderer.c index fdde9ae4..ea6631f1 100644 --- a/src/gl-renderer.c +++ b/src/gl-renderer.c @@ -1707,6 +1707,8 @@ gl_renderer_destroy(struct weston_compositor *ec) eglTerminate(gr->egl_display); eglReleaseThread(); + + free(gr); } static int diff --git a/src/shell.c b/src/shell.c index 3da5321e..5a09bb62 100644 --- a/src/shell.c +++ b/src/shell.c @@ -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);