<html><body>
<p><font size="2">Hello,</font><br>
<font size="2">the following piece of code leaks:</font><br>
<br>
<font size="2" face="Courier New">import PyQt4.QtGui</font><br>
<font size="2" face="Courier New">import PyQt4.QtCore</font><br>
<font size="2" face="Courier New">import time</font><br>
<br>
<font size="2" face="Courier New">app = PyQt4.QtGui.QApplication([])</font><br>
<font size="2" face="Courier New">mainWindow = PyQt4.QtGui.QMainWindow()</font><br>
<br>
<font size="2" face="Courier New">while True:</font><br>
<font size="2" face="Courier New"> button = PyQt4.QtGui.QPushButton(mainWindow)</font><br>
<font size="2" face="Courier New"> button.parent().findChild(PyQt4.QtCore.QObject, "foo")</font><br>
<font size="2" face="Courier New"> button.setParent(None)</font><br>
<font size="2" face="Courier New"> time.sleep(0.01)</font><br>
<br>
<font size="2">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.</font><br>
<br>
<font size="2">In older version 4.7.3-2 this leak was not there.</font><br>
<br>
<font size="2">Best regards.</font><br>
<font size="2">Carl.</font><br>
<font size="2"><br>
</font></body></html>