From kde-bindings Fri Sep 01 11:45:23 2006 From: "Caleb Tennis" Date: Fri, 01 Sep 2006 11:45:23 +0000 To: kde-bindings Subject: Re: [Kde-bindings] QtRuby memleak continued Message-Id: <48742.192.168.2.155.1157111123.squirrel () www ! aei-tech ! com> X-MARC-Message: https://marc.info/?l=kde-bindings&m=115711123825755 > 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