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

List:       kde-bindings
Subject:    Re: [Kde-bindings] QtRuby memleak continued
From:       "Caleb Tennis" <caleb () aei-tech ! com>
Date:       2006-09-01 11:45:23
Message-ID: 48742.192.168.2.155.1157111123.squirrel () www ! aei-tech ! com
[Download RAW message or body]


> I think the QtRuby code for QStrings is probably wrong, but for 'char *'s
> I'm
> not sure as there are no rules for who 'owns' the string after the call
> has
> completed. Perhaps we can usually assume QtRuby should delete the 'char
> *',
> but special case when it shouldn't - tricky..

What scares me the most about marshall_charP (talking QtRuby 3 here) is
that new charPs are created with "malloc" in the FromVALUE and deleted
with "delete[]" in the ToVALUE.  However, since I'm not seeing any
warnings from valgrind on this, and some qDebugs thrown in the code seem
to indicate that the charP's that are getting created on my system aren't
being cleaned up at all.

Caleb



_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
[prev in list] [next in list] [prev in thread] [next in thread] 

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