freeing gslist data ?



Hi,
suppose that i have a GSList *foo and a gchar *bar
and i've used something like this:
foo = g_slist_append(foo, g_strdup(bar));
now when i free the list, Do i have to manually iterate over the list 
and free the ->data ?
i've browsed the code but i didn't understand well the gallocator things

-- 
----------------
-- Katoob Main Developer
Linux registered user # 224950
ICQ # 58475622
FIRST make it run, THEN make it run fast "Brian Kernighan".
--
Don't send me any attachment in Micro$oft (.DOC, .PPT) format please
Read http://www.fsf.org/philosophy/no-word-attachments.html
Preferable attachments: .PDF, .HTML, .TXT
Thanx for adding this text to Your signature

Attachment: pgpi7DRjLHC_Q.pgp
Description: PGP signature



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