wayland: Don't mix free and g_strdup
authorMatthias Clasen <mclasen@redhat.com>
Sun, 5 Apr 2015 22:59:51 +0000 (18:59 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 5 Apr 2015 22:59:51 +0000 (18:59 -0400)
While it works most of the time, this is technically
not correct.

gdk/wayland/gdkdisplay-wayland.c

index 1b26e5b284993e2af5e6329678fde5d8bbc7f2b6..6d9a50e8ab54955c206fa47c0423a3fda38f6e64 100644 (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;