From 39458dc03a045489e0f481b8629ebf558294d8ae Mon Sep 17 00:00:00 2001 From: ladyada Date: Tue, 12 Feb 2019 02:37:24 -0500 Subject: [PATCH] avoid fragments --- adafruit_bitmap_font/bdf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/adafruit_bitmap_font/bdf.py b/adafruit_bitmap_font/bdf.py index 1bf69f3..21eb622 100644 --- a/adafruit_bitmap_font/bdf.py +++ b/adafruit_bitmap_font/bdf.py @@ -1,3 +1,4 @@ +import gc from .glyph_cache import GlyphCache class BDF(GlyphCache): @@ -59,6 +60,7 @@ def load_glyphs(self, code_points): character = False if desired_character: self._glyphs[code_point] = current_info + gc.collect() if total_remaining == 0: return desired_character = False