Re: When to g_free()



Andrea Frome <andrea@bluemug.com> writes:
> How do we tell if we're dealing with a legacy function?  
>

Well, ideally it says in the docs. Failing that, this one is pretty
easy to tell from the source.
 
> I have a similar question with gtk_file_selection_get_filename().  It 
> appears that it's returning a pointer from an internal structure
> that is freed when the file selection widget is destroyed, but I'm
> not positive.
> 

That one is an old legacy function.

Havoc





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