mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 12:28:04 +02:00
Fix memory leaks
Fix a couple leaks caught by valgrind.
This commit is contained in:
parent
1c169ffdec
commit
976a050f8f
2 changed files with 3 additions and 0 deletions
|
|
@ -1707,6 +1707,8 @@ gl_renderer_destroy(struct weston_compositor *ec)
|
|||
|
||||
eglTerminate(gr->egl_display);
|
||||
eglReleaseThread();
|
||||
|
||||
free(gr);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue