Re: [PyQt] SIP: memory leak in mapped type?

2007-07-28 Thread Phil Thompson
On Friday 27 July 2007 4:30 pm, Giovanni Bajo wrote: On 7/27/2007 3:19 PM, Phil Thompson wrote: // Get the Python wrapper for the Type instance, creating a new // one if necessary, and handle any ownership transfer. if ((pobj = sipConvertFromInstance(cpp,

Re: [PyQt] SIP: memory leak in mapped type?

2007-07-28 Thread Giovanni Bajo
On sab, 2007-07-28 at 12:30 +0100, Phil Thompson wrote: - bug.h / bug.cpp is the source code, with two functions with identical semantic but different signature. - bug.sip is the trivial wrapper for both functions. - stl.sip is the file with the mapped types for std::vector [notice that

Re: [PyQt] SIP: memory leak in mapped type?

2007-07-28 Thread Phil Thompson
On Saturday 28 July 2007 4:36 pm, Giovanni Bajo wrote: On sab, 2007-07-28 at 12:30 +0100, Phil Thompson wrote: - bug.h / bug.cpp is the source code, with two functions with identical semantic but different signature. - bug.sip is the trivial wrapper for both functions. - stl.sip is

Re: [PyQt] SIP: memory leak in mapped type?

2007-07-28 Thread Giovanni Bajo
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/

Re: [PyQt] SIP: memory leak in mapped type?

2007-07-28 Thread Phil Thompson
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

Re: [PyQt] SIP: memory leak in mapped type?

2007-07-27 Thread Phil Thompson
On Tuesday 24 July 2007 3:45 pm, Giovanni Bajo wrote: Hi, this is some mapped code I have written: templateTYPE %MappedType std::vectorTYPE { %TypeHeaderCode #include vector %End %ConvertFromTypeCode

[PyQt] SIP: memory leak in mapped type?

2007-07-24 Thread Giovanni Bajo
Hi, this is some mapped code I have written: templateTYPE %MappedType std::vectorTYPE { %TypeHeaderCode #include vector %End %ConvertFromTypeCode PyObject *l; // Create the Python list of the correct length.