[gtk+] wayland: Don't mix free and g_strdup
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: Don't mix free and g_strdup
- Date: Sun, 5 Apr 2015 23:02:30 +0000 (UTC)
commit cb750f60f9f37559e36504511f65f5fa10871b54
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Apr 5 18:59:51 2015 -0400
wayland: Don't mix free and g_strdup
While it works most of the time, this is technically
not correct.
gdk/wayland/gdkdisplay-wayland.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c
index 1b26e5b..6d9a50e 100644
--- a/gdk/wayland/gdkdisplay-wayland.c
+++ b/gdk/wayland/gdkdisplay-wayland.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]