[PyKDE] QObject.queryList() memory leak problem
phil at riverbankcomputing.co.uk
Fri Apr 15 14:40:10 BST 2005
On Thursday 14 April 2005 4:19 pm, Ümit Öztosun wrote:
> When using QObject.queryList() with an inheritsClass parameter [i.e.
> self.queryList('QWidget')], the objects returned by the query gains an
> extra reference AFAIU. However, without parameters, it works as
> The attached script demonstrates the problem, it repeatedly creates
> and then destroys a dialog. You can monitor the constant leak with any
> process viewer. On the other hand, simply deleting the 'QWidget'
> parameter at line 36 solves the problem, no leak occurs.
> Tested on Debian Testing, Python 2.4, Qt 3.3.3, both sip-4.2.1 /
> PyQt-3.14.1 and sip-snapshot-20050403 /
It will be fixed in the next PyQt snapshot.
More information about the PyQt