Fix for bug 3575611 strdup property name so it can be freed
This commit is contained in:
@ -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>
|
2006-10-08 Kristian Rietveld <kris@gtk.org>
|
||||||
|
|
||||||
* gtk/gtktreeview.[ch] (gtk_tree_view_set_property),
|
* 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)
|
if (GPOINTER_TO_INT (atom) >= atoms_to_names->len)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
return g_strdup(g_ptr_array_index (atoms_to_names, GPOINTER_TO_INT (atom)));
|
||||||
return g_ptr_array_index (atoms_to_names, GPOINTER_TO_INT (atom));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user