Re: has anyone valgrind'd gtk?



On 12/3/06, gtk amnesia accessgate com sg <gtk amnesia accessgate com sg> wrote:
i have an application, and i'm noticing some leaks deep within gtk's libraries.

GTK doesn't free memory that is just allocated once (usually on
startup). It should free memory that gets allocated for widgets
though. So you should not see your heap size growing (except through
fragmentation) with runtime.

There are flags you can set to make GTK easier to valgrind. Federico
had a nice post about this on his blog:

http://primates.ximian.com/~federico/news-2006-04.html#memory-debugging-infrastructure

John



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