Re: freeing text



On Tue, Apr 24, 2001 at 01:36:28PM -0400, Damon Chaplin wrote:
> "Dugas, Alan" wrote:
> > 
> > Does anyone know if the text returned by gtk_clist_get_text() needs to be freed
> > when done using it?  Thanks in advance to any who reply.
> 
> You can tell quite easily from looking at the gtk_clist_get_text()
> code:
> 
>     *text = GTK_CELL_TEXT (clist_row->cell[column])->text;
> 
> i.e. it returns a pointer to the internal copy of text, so you
> shouldn't free it.

Is this (finally) documented?  There's really no reason why people who
use an API need to look at the API's source to determine proper
behavior for their applications.
--andy




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