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
deallocated.

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.

James

Attachment: gencode.patch
Description: Binary data

_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to