compositor-wayland: free 'theme' config option value

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
dev
U. Artie Eoff 11 years ago committed by Kristian Høgsberg
parent 1a08d1196a
commit ff7550087e
  1. 2
      src/compositor-wayland.c

@ -1427,6 +1427,8 @@ create_cursor(struct wayland_compositor *c, struct weston_config *config)
c->cursor_theme = wl_cursor_theme_load(theme, size, c->parent.shm); c->cursor_theme = wl_cursor_theme_load(theme, size, c->parent.shm);
free(theme);
c->cursor = NULL; c->cursor = NULL;
for (i = 0; !c->cursor && i < ARRAY_LENGTH(left_ptrs); ++i) for (i = 0; !c->cursor && i < ARRAY_LENGTH(left_ptrs); ++i)
c->cursor = wl_cursor_theme_get_cursor(c->cursor_theme, c->cursor = wl_cursor_theme_get_cursor(c->cursor_theme,

Loading…
Cancel
Save