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

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