Re: checking for memory leaks in gtk
- Date: Fri, 2 May 2008 11:53:04 +0300
- From: Ionutz Borcoman <iborco@xxxxxxxxx>
- Subject: Re: checking for memory leaks in gtk
On Friday 02 May 2008 11:34:29 am jcupitt@xxxxxxxxx wrote:
> When I valgrind my app and check for leaks, I let it run for a while
> before quitting, then check the output for repeated allocations. If I
> see the same thing being allocated several times and not freed I know
> I probably have a leak.
Actually my own leak are my greatest concern. The problem is that having those
leaks reported because of how glib caches data makes debugging your own code
harder.
Any recipe to easily spot or isolate your allocations/dealocations from those
from GTK/Glib?
How do you know the leak is because I haven't freed the memory or because I've
freed it, but Glib hasn't?
Thanx,
Johnny
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list