[PATCH weston] Fix memory leaks
Scott Moreau
oreaus at gmail.com
Thu Mar 7 09:15:17 PST 2013
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 a5dc2f3..3dfcd15 100644
--- a/src/gl-renderer.c
+++ b/src/gl-renderer.c
@@ -1663,6 +1663,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 3da5321..5a09bb6 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);
--
1.7.10.4
More information about the wayland-devel
mailing list