[PATCH] cursor: free the array from which images are linked

Emmanuel Gil Peyrot linkmauve at linkmauve.fr
Tue Mar 17 17:53:22 PDT 2015


---
 cursor/wayland-cursor.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cursor/wayland-cursor.c b/cursor/wayland-cursor.c
index 1a5393a..410a0d4 100644
--- a/cursor/wayland-cursor.c
+++ b/cursor/wayland-cursor.c
@@ -190,6 +190,7 @@ wl_cursor_destroy(struct wl_cursor *cursor)
 	for (i = 0; i < cursor->image_count; i++)
 		wl_cursor_image_destroy(cursor->images[i]);
 
+	free(cursor->images);
 	free(cursor->name);
 	free(cursor);
 }
-- 
2.3.1



More information about the wayland-devel mailing list