I've been seeing a mem leak in my PyKDE application for several months. I figured it was because I upgraded KDE to 3.4 or something because I saw it around that time. I finally made my self try to figure out where the leak was coming from and narrowed it down to QMovie.
Attached is a minimal program where I see the leak happening it doesn't require PyKDE only PyQT. Slowly the memory usage of the application goes up, when I comment the QMovie line there is no memory leak. I hadn't tried a C++ version of it so I don't know where the heart of the problem lies. I am running Gentoo with the latest sip, and pyqt snapshots (qt 3.3.4). I don't think it is my setup because it does the same on my Debian box and it has been doing it for a while which include previous versions of sip and pyqt. Thanks for any help resolving this issue. Russell Valentine
import sys
from qt import QApplication, QMovie, QMainWindow
class MyWindow(QMainWindow):
def __init__(self):
QMainWindow.__init__(self)
self.statusIcons = { "red": QMovie("red.mng") }
a = QApplication(sys.argv)
win = MyWindow()
win.show()
a.exec_loop()
red.mng
Description: video/mng
_______________________________________________ PyKDE mailing list [email protected] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
