compositor-wayland: free 'theme' config option value

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
This commit is contained in:
U. Artie Eoff
2014-01-17 12:36:58 -08:00
committed by Kristian Høgsberg
parent 1a08d1196a
commit ff7550087e
+2
View File
@@ -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);
free(theme);
c->cursor = NULL;
for (i = 0; !c->cursor && i < ARRAY_LENGTH(left_ptrs); ++i)
c->cursor = wl_cursor_theme_get_cursor(c->cursor_theme,