forked from AuroraMiddleware/gtk
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:
parent
386534ef1f
commit
cb750f60f9
@ -605,7 +605,7 @@ gdk_wayland_display_set_cursor_theme (GdkDisplay *display,
|
|||||||
}
|
}
|
||||||
wayland_display->scaled_cursor_themes[0] = theme;
|
wayland_display->scaled_cursor_themes[0] = theme;
|
||||||
if (wayland_display->cursor_theme_name != NULL)
|
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_name = g_strdup (name);
|
||||||
wayland_display->cursor_theme_size = size;
|
wayland_display->cursor_theme_size = size;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user