Weston: Free allocated cursors array when destroying

This array is allocated in create_cursors(). It should be freed in
destroy_cursors().
Yan Wang 13 years ago committed by Kristian Høgsberg
parent 92a57db6f2
commit a261f7e6dc
  1. 1
      clients/window.c

@ -661,6 +661,7 @@ static void
destroy_cursors(struct display *display) destroy_cursors(struct display *display)
{ {
wl_cursor_theme_destroy(display->cursor_theme); wl_cursor_theme_destroy(display->cursor_theme);
free(display->cursors);
} }
struct wl_cursor_image * struct wl_cursor_image *

Loading…
Cancel
Save