Skip to content

Commit

Permalink
avoid fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
ladyada committed Feb 12, 2019
1 parent 62dd78a commit 39458dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adafruit_bitmap_font/bdf.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import gc
from .glyph_cache import GlyphCache

class BDF(GlyphCache):
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 39458dc

Please sign in to comment.