summaryrefslogtreecommitdiff
path: root/src/compositor-wayland.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compositor-wayland.c')
-rw-r--r--src/compositor-wayland.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c
index d2d89427..899c3293 100644
--- a/src/compositor-wayland.c
+++ b/src/compositor-wayland.c
@@ -879,7 +879,7 @@ wayland_output_create_for_config(struct wayland_compositor *c,
name = str;
}
if (!name)
- name = WINDOW_TITLE;
+ name = strdup(WINDOW_TITLE);
weston_config_section_get_string(config_section,
"mode", &mode, "1024x600");
@@ -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,