Re: has anyone valgrind'd gtk?



On Sun, 2006-12-03 at 22:11 +0800, gtk amnesia accessgate com sg wrote:
> i have an application, and i'm noticing some leaks deep within gtk's libraries.
> 
> even if i take something simple, such as in the examples directory, the
> notebook example, modify it to destroy the notebook, table, and window before
> exitting, and run valgrind, there is quite a lot of memory that is not freed.
> 
> has anyone looked at this before ?

GTK+ internally uses GSlice, which means you'll see lots of fake leaks.
Set G_SLICE=always-malloc when starting valgrind, and they'll probably
disappear.

Ross
-- 
Ross Burton                                 mail: ross burtonini com
                                          jabber: ross burtonini com
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF

Attachment: signature.asc
Description: This is a digitally signed message part



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