[PATCH weston] Fix memory leaks
Kristian Høgsberg
hoegsberg at gmail.com
Mon Mar 18 18:34:30 PDT 2013
On Thu, Mar 07, 2013 at 10:15:17AM -0700, Scott Moreau wrote:
> Fix a couple leaks caught by valgrind.
Thanks, applied.
Kristian
> 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
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
More information about the wayland-devel
mailing list