Skip to content

Commit

Permalink
Enable garbage collector (minimizes memleaks in webengine)
Browse files Browse the repository at this point in the history
  • Loading branch information
smallcms committed Jul 3, 2022
1 parent ae1aeb8 commit 0a433ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions infinitrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -557,6 +558,7 @@ def strip_html(text):
self._blabel = BubbleLabel()
self._blabel.setText(msg)
self._blabel.show()
gc.collect()


class WebEngineView(QWebEngineView):
Expand Down

0 comments on commit 0a433ee

Please sign in to comment.