Fix for bug 3575611 strdup property name so it can be freed

This commit is contained in:
Michael David Emmel 2006-10-08 14:54:24 +00:00
parent fb59835481
commit b140b48e71
2 changed files with 5 additions and 2 deletions

View File

@ -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),

View File

@ -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)));
}