def free_up_memory(self):
        """Free up memory by removing unused text objects."""
        ### clear self.lines to free the memory taken by
        ### the line objects (specially their surfaces)
        self.lines.clear()
Free up memory by removing unused text objects.
nodezator/textman/viewer/op.py