Skip to content

Commit 27a8a43

Browse files
authored
Merge pull request #20 from makermelissa/main
Improve memory usage with a well placed gc.collect()
2 parents 4941e40 + 452c8a4 commit 27a8a43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adafruit_portalbase/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ def set_text(self, val, index=0):
260260
# Remove the label from splash
261261
if index_in_splash is not None and self._text[index]["label"] is None:
262262
del self.splash[index_in_splash]
263+
gc.collect()
263264

264265
def preload_font(self, glyphs=None, index=0):
265266
# pylint: disable=line-too-long

0 commit comments

Comments
 (0)