compositor-wayland: free 'theme' config option value
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Fri, 17 Jan 2014 20:36:58 +0000 (12:36 -0800)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 20 Jan 2014 06:07:33 +0000 (22:07 -0800)
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
src/compositor-wayland.c

index 8ddc8bc..899c329 100644 (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,