Hi,

I have this code:

gchar **array = NULL;:
array = gtk_selection_data_get_uris ( data );
while (array[len])
{
       filename = g_filename_from_uri ( array[len] , NULL, NULL );
       Files_to_Add = g_slist_prepend ( Files_to_Add , filename );
       g_free (filename);
       len++;
}

The problem is that when I free filename the GSList data becames corrupted, but the docs says that g_filename_from_uri returns allocated memory, so what can I do ? Once I put filename in the GSList I don't need it anymore. Is filename freed when I call g_slist_free ?
--
Colossus
Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.sourceforge.net
Cpsed, a Linux OpenGL 3D scene editor - http://cpsed.sourceforge.net
Mizio, a QT proxy hunter scanner tool - http://mizio.sourceforge.net
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to