compositor-wayland: free 'theme' config option value
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
This commit is contained in:
committed by
Kristian Høgsberg
parent
1a08d1196a
commit
ff7550087e
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user