Freeing memory that was used by GTK




What is the real advantage to using g_free over free?  For normal variables,
say, allocated with calloc, how does it help?

And how would you go about freeing memory that has your windows, frames, 
widgets, and so on?  You can't free them after they've been set up and 
displayed, but you still have to free that memory in order to prevent a leak,
right?  Does gtk_main_quit do that stuff for you?

Does anybody know where any documentation can be found regarding GTK and 
memory issues, and also if there are any docs out there having to do with
tracking down and eliminating memory leaks?  (other than documentation that
comes with something like electric fence, which as far as I can see, only
helps with over/underruns with memory, not with memory that hasn't been freed
on exit)

Any help would be appreciated.
-- 
David Allen
http://opop.nols.com/
----------------------------------------
Don't look back, the lemmings are gaining on you. 



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