From: U. Artie Eoff Date: Fri, 17 Jan 2014 20:36:58 +0000 (-0800) Subject: compositor-wayland: free 'theme' config option value X-Git-Tag: upstream/0.1.8~479 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff7550087e8403c7c884a51a37ccedd79a1966d3;p=profile%2Fivi%2Fweston-ivi-shell.git compositor-wayland: free 'theme' config option value Signed-off-by: U. Artie Eoff --- diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c index 8ddc8bc..899c329 100644 --- a/src/compositor-wayland.c +++ b/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); + 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,