RE: GtkLabel question



> From: Jochen Voss [mailto:jvoss2 web de] 
> On Mon, May 19, 2003 at 10:50:11AM -0400, Havoc Pennington wrote:
> > GTK never "adopts" a string you pass in; it makes a copy. You can 
> > free your string as soon as you've passed it in.
> 
> Some time ago I looked for this information in the GTK+ API
> reference and did not find it.  Is this documented
> somewhere?  I think it should be.

It probably should be, and it might be in the tutorial.

But in general, if something takes a _const_ char*, you wouldn't expect it
to free it for you later or otherwise mess with it.
That's just general C.

Murray Cumming
murrayc usa net
www.murrayc.com 



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