Re: Is this a memory leak?



On Wed, Nov 09, 2011 at 02:38:44PM +0100, Traktor Toni wrote:
> Hi, I'm using librsvg-2. Just calling rsvg_init() rsvg_term() tells  
> "bytes possibly lost" in valgrind at line "g_type_init_with_debug_flags"  
> inside rsvg_init().

Do you use nip2.supp?

> Also, why is it still calling g_type_init_with_debug_flags even though  
> I'm not compiling with any -g flag?

g_type_init() is just an alias for g_type_init_with_debug_flags() with
zero debug flags.  So type initialisation always goes through
g_type_init_with_debug_flags().  And the flags are GObject debugging
flags they have nothing to do with the debugging info put into binaries
by the C compiler.

Yeti



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