wayland: Don't mix free and g_strdup

While it works most of the time, this is technically
not correct.
This commit is contained in:
Matthias Clasen 2015-04-05 18:59:51 -04:00
parent 386534ef1f
commit cb750f60f9

View File

@ -605,7 +605,7 @@ gdk_wayland_display_set_cursor_theme (GdkDisplay *display,
}
wayland_display->scaled_cursor_themes[0] = theme;
if (wayland_display->cursor_theme_name != NULL)
free (wayland_display->cursor_theme_name);
g_free (wayland_display->cursor_theme_name);
wayland_display->cursor_theme_name = g_strdup (name);
wayland_display->cursor_theme_size = size;