run garbage collector after webengine window

we GC on autosave, but doing an explicit GC prevents excess memory
consumption when rapidly opening and closing windows using
webengine
This commit is contained in:
Damien Elmes 2017-07-08 12:28:11 +10:00
parent d1f05907be
commit 2d25069936

View file

@ -1163,6 +1163,7 @@ Please ensure a profile is open and Anki is not busy, then try again."""),
def gcWindow(self, obj):
obj.deleteLater()
self.progress.timer(1000, self.doGC, False)
def disableGC(self):
gc.collect()