aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/extras')
-rw-r--r--klippy/extras/display/display.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/klippy/extras/display/display.py b/klippy/extras/display/display.py
index 38a95cf4..d3db32a3 100644
--- a/klippy/extras/display/display.py
+++ b/klippy/extras/display/display.py
@@ -79,6 +79,7 @@ class DisplayGroup:
for row, col, template in self.data_items:
text = template.render(context)
display.draw_text(row, col, text.replace('\n', ''), eventtime)
+ context.clear() # Remove circular references for better gc
class PrinterLCD:
def __init__(self, config):