[PATCH] Weston: Free allocated cursors array when destroying

yan.wang at linux.intel.com yan.wang at linux.intel.com
Sun May 27 23:07:25 PDT 2012


From: Yan Wang <yan.wang at linux.intel.com>

This array is allocated in create_cursors(). It should be freed in 
destroy_cursors().

---
 clients/window.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/clients/window.c b/clients/window.c
index bab5d76..0c6f556 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -661,6 +661,7 @@ static void
 destroy_cursors(struct display *display)
 {
 	wl_cursor_theme_destroy(display->cursor_theme);
+	free(display->cursors);
 }
 
 struct wl_cursor_image *
-- 
1.7.7.6



More information about the wayland-devel mailing list