window.c: Free cursor theme name once we're done with it

This commit is contained in:
Kristian Høgsberg
2013-10-09 13:02:04 -07:00
parent af393dcc69
commit b5c973c8c2
+1
View File
@@ -1321,6 +1321,7 @@ create_cursors(struct display *display)
weston_config_destroy(config);
display->cursor_theme = wl_cursor_theme_load(theme, size, display->shm);
free(theme);
display->cursors =
xmalloc(ARRAY_LENGTH(cursors) * sizeof display->cursors[0]);