[PyKDE] Leaking in virtual handler
ephelon at gmail.com
Wed Apr 20 22:09:16 BST 2005
I have found a memory leak owing to how SIP handles virtual methods.
If a type conversion is done by sipParseResult(), a new object is
allocated but never deleted.
I have an interface that returns a QString. If I implement this in
python and return a python string, a conversion to QString is
performed by creating a new QString instance. This instance is never
I have attached a patch which appears to correct this. I am not
entirely comfortable with the way I am detecting whether sipResOrig is
the same as the pointer contained in sipResObj.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 916 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20050420/14a5b7ac/gencode.obj
More information about the PyQt