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

Re: memory leak in gtk




On Wed, 21 Nov 2007 20:15:25 +0100 c f wrote:

[...]
> I have used mtrace to check for memory leaks. In this simple
> application there are more than 5000 memory allocation which is not
> freed.

See:
http://www.gtk.org/faq/#AEN703

> I have checked the GTK documentation and it states that gtk_exit free
> all resources allocated for GTK+. gtk_exit is depricated and using
> exit is recommended.

It's deprecated for a reason -- it doesn't free all memory allocated by
gtk (or glib, or gobject, or gdk).  It's not possible to do so.

	-brian


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