[PyQt] SIP: memory leak in mapped type?
Phil Thompson
phil at riverbankcomputing.co.uk
Sat Jul 28 22:43:43 BST 2007
On Saturday 28 July 2007 5:53 pm, Giovanni Bajo wrote:
> On sab, 2007-07-28 at 16:53 +0100, Phil Thompson wrote:
> > The leak that your test case demonstrated had nothing to do
> > with /Transfer/ or
> > sipTransferObj. If you still have a leak then I need another test
> > case.
>
> You mentioned that you fixed a memory leak in SIP with mapped types
> and /Out/ annotations. This is one of the two leaks in my testcase (when
> calling the function with the /Out/ annotation). But in the other leak
> in my testcase, there is no /Out/ annotation, only a return value.
>
> Will that be fixed as well with tonight snapshot?
Sorry, I misread your email. Both tests now use the same amount of memory.
The other leak is down to you using sipConvertFromInstance() instead of
sipConvertFromNewInstance(). I'd forgotten that a transfer object of NULL
means different things to the two functions.
Phil
More information about the PyQt
mailing list