projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
386534e
)
wayland: Don't mix free and g_strdup
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 5 Apr 2015 22:59:51 +0000
(18:59 -0400)
committer
Matthias 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
patch
|
blob
|
history
diff --git
a/gdk/wayland/gdkdisplay-wayland.c
b/gdk/wayland/gdkdisplay-wayland.c
index 1b26e5b284993e2af5e6329678fde5d8bbc7f2b6..6d9a50e8ab54955c206fa47c0423a3fda38f6e64 100644
(file)
--- 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;