[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] Leak found in PyQt version 4.8.5-1 / 4.8.5 win32 build
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2011-08-25 16:39:47
Message-ID: 9f56b365437dc73e4b92ecf52fc8dff5 () localhost
[Download RAW message or body]
On Mon, 22 Aug 2011 20:00:31 +0200, Carl Wolff <carl.wolff@imtech.nl>
wrote:
> Hello,
> the following piece of code leaks:
>
> import PyQt4.QtGui
> import PyQt4.QtCore
> import time
>
> app = PyQt4.QtGui.QApplication([])
> mainWindow = PyQt4.QtGui.QMainWindow()
>
> while True:
> button = PyQt4.QtGui.QPushButton(mainWindow)
> button.parent().findChild(PyQt4.QtCore.QObject, "foo")
> button.setParent(None)
> time.sleep(0.01)
>
> When the findChild call is not done this code does not leak. So the leak
> cause seems to be located somewhere in the findChild processing, or I
must
> be doing something wrong.
>
> In older version 4.7.3-2 this leak was not there.
>
> Best regards.
> Carl.
Fixed in tonight's snapshot - thanks.
Phil
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic