[PyKDE] qt or python memory leak?

Patrick Stinson ajole-1 at gci.net
Sun Mar 14 11:50:00 GMT 2004


why is it that the amount of memory that the following script uses does not 
remain constant?

(mem usage does not change if 'WDestructiveClose'/'w.close()' are omitted)

a = QApplication([])
class W(QWidget):
    def __init__(self):
        QWidget.__init__(self, None, None, Qt.WDestructiveClose)
while 1:
    w = W()
    w.close()




More information about the PyQt mailing list