cursor: free the array from which images are linked

This commit is contained in:
Emmanuel Gil Peyrot 2015-03-18 01:53:22 +01:00 committed by Bryce Harrington
parent be47969a38
commit c770b84658

View file

@ -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);
}