[PATCH weston 1/4] gl-renderer: fix leak on dmabuf image destroy

Arnaud Vrac rawoul at gmail.com
Sat Aug 5 11:58:58 UTC 2017


Signed-off-by: Arnaud Vrac <rawoul at gmail.com>
---
 libweston/gl-renderer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libweston/gl-renderer.c b/libweston/gl-renderer.c
index da29b072..5768f05a 100644
--- a/libweston/gl-renderer.c
+++ b/libweston/gl-renderer.c
@@ -337,6 +337,7 @@ dmabuf_image_destroy(struct dmabuf_image *image)
 		linux_dmabuf_buffer_set_user_data(image->dmabuf, NULL, NULL);
 
 	wl_list_remove(&image->link);
+	free(image);
 }
 
 static const char *
-- 
2.13.0



More information about the wayland-devel mailing list