[gtkada] Clist and Chars_ptr_array

Emmanuel Briot briot at ACT-Europe.FR
Thu Nov 15 11:44:50 CET 2001


Preben Randhol <randhol at pvv.org> writes:

> I tried without the Free and saw that it leaked memory. But is the data
> passed to the Clist removed in the sense Freed when you call Clear?


Yes, I think so.
gtk+ does a copy of the strings you pass, and frees the memory correctly every
time a row is deleted or the contents of a cell changes.
Same when you clear the whole list, since basically is deletes the rows one by
one.

Emmanuel




More information about the gtkada mailing list