mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
Fix for bug 3575611 strdup property name so it can be freed
This commit is contained in:
parent
fb59835481
commit
b140b48e71
@ -1,3 +1,7 @@
|
||||
2006-10-08 Michael Emmel <mike.emmel@gmail.com>
|
||||
|
||||
* gdk/directfb/gdkproperty-directfb.c strdup atom name (#357611)
|
||||
|
||||
2006-10-08 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktreeview.[ch] (gtk_tree_view_set_property),
|
||||
|
@ -191,8 +191,7 @@ gdk_atom_name (GdkAtom atom)
|
||||
|
||||
if (GPOINTER_TO_INT (atom) >= atoms_to_names->len)
|
||||
return NULL;
|
||||
|
||||
return g_ptr_array_index (atoms_to_names, GPOINTER_TO_INT (atom));
|
||||
return g_strdup(g_ptr_array_index (atoms_to_names, GPOINTER_TO_INT (atom)));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user