Fix memory leaks
Fix a couple leaks caught by valgrind.
This commit is contained in:
parent
1c169ffdec
commit
976a050f8f
@ -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…
x
Reference in New Issue
Block a user