Freeing GtkListStore entries.




 Folks,

 I would like to know if we have to free the items from a GtkListStore when
they are overwrtten with new values.

 I have the following:
 gtk_list_store_set (store, &iter,
                  COL_DOC_ID, req->doc_id,
                  COL_PAT_ID,   req->pat_id, -1);

 
 They are both of type char*. Later on, that record can be updated  with new
value, so do I have to free them first before setting the new values ?

  What about for pixbufs, should they be freed as well ?  ( Aparently the set
call makes a copy of whatever we pass in.)

  I looked at the source code, and to be quite honest, I got a bit dizzy with
the vargs and all the other function calls. That's why I am asking here :)

  Thanks.

Harring. 


__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com



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