aboutsummaryrefslogtreecommitdiffstats
path: root/cursor/wayland-cursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'cursor/wayland-cursor.c')
-rw-r--r--cursor/wayland-cursor.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/cursor/wayland-cursor.c b/cursor/wayland-cursor.c
index 55c62ee..b3495e0 100644
--- a/cursor/wayland-cursor.c
+++ b/cursor/wayland-cursor.c
@@ -129,7 +129,6 @@ struct wl_cursor_theme {
struct wl_cursor **cursors;
struct wl_shm *shm;
struct shm_pool *pool;
- char *name;
int size;
};
@@ -256,9 +255,6 @@ load_fallback_theme(struct wl_cursor_theme *theme)
{
uint32_t i;
- free(theme->name);
- theme->name = strdup("default");
-
theme->cursor_count = ARRAY_LENGTH(cursor_metadata);
theme->cursors = malloc(theme->cursor_count * sizeof(*theme->cursors));
@@ -391,9 +387,6 @@ wl_cursor_theme_load(const char *name, int size, struct wl_shm *shm)
if (!name)
name = "default";
- theme->name = strdup(name);
- if (!theme->name)
- goto out_error_name;
theme->size = size;
theme->cursor_count = 0;
theme->cursors = NULL;
@@ -413,8 +406,6 @@ wl_cursor_theme_load(const char *name, int size, struct wl_shm *shm)
return theme;
out_error_pool:
- free(theme->name);
-out_error_name:
free(theme);
return NULL;
}
@@ -433,7 +424,6 @@ wl_cursor_theme_destroy(struct wl_cursor_theme *theme)
shm_pool_destroy(theme->pool);
- free(theme->name);
free(theme->cursors);
free(theme);
}