At 2004-07-13T15:31:32+1200, Timothy Musson wrote:
> A few days ago, a friend mentioned that valgrind[1] detects memory
> leaks in a piece of software I've written. So I installed valgrind
> (version 2.0.0) to check it out and... yup, I get the same results.

Valgrind FAQ #14, and...

> So, am I misunderstanding glib-2.0?

Possibly.  glib does its own memory management, and doesn't release
memory immediately after the caller frees an object.

Read the following thread for some related information:

http://mail.gnome.org/archives/gtk-list/1999-March/msg00467.html

> Or is it just that valgrind needs a suppression file for glib-2.0?

Most likely.

Cheers,
-mjg
-- 
Matthew Gregan                     |/
                                  /|                [EMAIL PROTECTED]

Reply via email to