Re: GSList and g_filename_from_uri free memory problem



Stefan Kost wrote:

just don't fre the filenames now. Free the filenames when you free the list.

Ok, but you see the while loop ? if the user drags 10 files from Nautilis window inside Xarchiver ( my app ) window, when I issue g_free later I will only free the last pointer gave me back from
g_filename_from_uri and what the others nine ones ?

--
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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]