From 0a433eee71f96adf76985929243218bc709f98ab Mon Sep 17 00:00:00 2001 From: smallcms Date: Sun, 3 Jul 2022 11:57:45 +0300 Subject: [PATCH] Enable garbage collector (minimizes memleaks in webengine) --- infinitrix.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infinitrix.py b/infinitrix.py index 34b9c0c..3d196b6 100644 --- a/infinitrix.py +++ b/infinitrix.py @@ -4,6 +4,7 @@ import sys import os import time +import gc try: from ctypes import windll # Only exists on Windows. myappid = u'smallcms.infinitrix.app.current' @@ -557,6 +558,7 @@ def strip_html(text): self._blabel = BubbleLabel() self._blabel.setText(msg) self._blabel.show() + gc.collect() class WebEngineView(QWebEngineView):