Skip to content

Commit 0a433ee

Browse files
committed
Enable garbage collector (minimizes memleaks in webengine)
1 parent ae1aeb8 commit 0a433ee

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

infinitrix.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import sys
55
import os
66
import time
7+
import gc
78
try:
89
from ctypes import windll # Only exists on Windows.
910
myappid = u'smallcms.infinitrix.app.current'
@@ -557,6 +558,7 @@ def strip_html(text):
557558
self._blabel = BubbleLabel()
558559
self._blabel.setText(msg)
559560
self._blabel.show()
561+
gc.collect()
560562

561563

562564
class WebEngineView(QWebEngineView):

0 commit comments

Comments
 (0)