[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: Another memleak in glib bindings
From:       Rob Taylor <robtaylor () floopily ! org>
Date:       2006-03-17 16:44:32
Message-ID: 441AE770.8010402 () floopily ! org
[Download RAW message or body]

Should be impossible to get an untyped pointer here, I suggest asserting.

Thanks
Rob Taylor

John (J5) Palmieri wrote:
> Unfortunately if you have a pointer in there you are still going to
> leak.  Only boxed, string and object types would be guaranteed to be
> freed correctly.  Is there any way an untyped pointer could become part
> of the array?  Perhaps we should assert on pointers?
> 
> On Fri, 2006-03-17 at 11:45 +0100, Jakub Stachowski wrote:
>> Hello,
>>
>> Trying to send (or receive) array of complex types leads to quite big memory 
>> leak. In this case array is represented as GPtrArray and its contents are 
>> never freed after use. My application that sends/receives structs a lot grows 
>> ~70MB overnight :-(
>>
>> Bugzilla entry is https://bugs.freedesktop.org/show_bug.cgi?id=6300
>> with proposed patch (by Rob Taylor, I only added finishing touches) :
>> https://bugs.freedesktop.org/attachment.cgi?id=4978
>>
>>
>> _______________________________________________
>> dbus mailing list
>> dbus@lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/dbus


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic