Re: freeing text



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

Damon




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