From: Yan Wang Date: Mon, 28 May 2012 06:07:25 +0000 (+0800) Subject: Weston: Free allocated cursors array when destroying X-Git-Tag: 20120702.1049~100 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a261f7e6dc1029ce96b6ab3b7dadf8f88d4d9936;p=profile%2Fivi%2Fweston.git Weston: Free allocated cursors array when destroying This array is allocated in create_cursors(). It should be freed in destroy_cursors(). --- 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 *