[PyKDE] Bad Memory Leak

Giovanni Bajo rasky at develer.com
Wed Dec 6 10:59:23 GMT 2006


Andre Reitz wrote:

> --------------------------------------------------
> from qt import *
> app=QApplication([])
> def c():
> print "cc"
> 
> sss=SIGNAL("clicked()")
> while 1:
> d=QDialog()
> b=QPushButton("x",d)
> QObject.connect(b,sss,c) #<-------XXX
> d.exec_loop()
> del b
> del d
> 
> --------------------------------------------------
> 
> Stay on the escape key, so that many many dialogs
> will be created and deleted.
> 
> Watch used Memory and you will see it increases
> significantly.

I cannot reproduce it with PyQt 3.16 and SIP 4.4.3.
It looks like it's been already fixed.
-- 
Giovanni Bajo
Develer S.r.l.
http://www.develer.com




More information about the PyQt mailing list