From ff7550087e8403c7c884a51a37ccedd79a1966d3 Mon Sep 17 00:00:00 2001 From: "U. Artie Eoff" Date: Fri, 17 Jan 2014 12:36:58 -0800 Subject: [PATCH] compositor-wayland: free 'theme' config option value Signed-off-by: U. Artie Eoff --- src/compositor-wayland.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c index 8ddc8bcd..899c3293 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,