From a261f7e6dc1029ce96b6ab3b7dadf8f88d4d9936 Mon Sep 17 00:00:00 2001 From: Yan Wang Date: Mon, 28 May 2012 14:07:25 +0800 Subject: [PATCH] Weston: Free allocated cursors array when destroying This array is allocated in create_cursors(). It should be freed in destroy_cursors(). --- clients/window.c | 1 + 1 file changed, 1 insertion(+) 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 * -- 2.7.4