Details
Description
In recent versions of PySide (1.2.1 and 1.2.2), the Python object associated with child widgets are leaked if the parent widget is deleted.
I have included an example that shows the Python garbage collector holding references to the deleted objects. shiboken.dump() confirms the C++ object was deleted.
Widgets that PySide knows about: <PySide.QtGui.QWidget object at 0x7f5976c8f638> <PySide.QtGui.QDesktopWidget object at 0x7f5976c93560> The garbage collector knows about 32478 objects Found one: 140022221698616 <type 'PySide.QtGui.QWidget'> Found one: 140022221698832 <type 'PySide.QtGui.QLabel'> Found one: 140022221713920 <type 'PySide.QtGui.QLabel'> Found one: 140022221713776 <type 'PySide.QtGui.QLabel'> ...