[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] QObject.queryList() memory leak problem
From:       Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date:       2005-04-15 13:40:10
Message-ID: 200504151440.10817.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]

On Thursday 14 April 2005 4:19 pm, Ümit Öztosun wrote:
> Hello,
>
> 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
> expected.
>
> 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 /
> PyQt-x11-gpl-snapshot-20050409.

It will be fixed in the next PyQt snapshot.

Thanks,
Phil

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic