summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYan Wang <yan.wang@linux.intel.com>2012-05-28 14:07:25 +0800
committerKristian Høgsberg <krh@bitplanet.net>2012-05-29 09:53:42 -0400
commita261f7e6dc1029ce96b6ab3b7dadf8f88d4d9936 (patch)
treeaf8db4e17a2ec65d80c0de1e4d4f0fff32e85db3
parent92a57db6f2fb54d70e5da00aaabc6af752ee07a2 (diff)
Weston: Free allocated cursors array when destroying
This array is allocated in create_cursors(). It should be freed in destroy_cursors().
-rw-r--r--clients/window.c1
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 *