How to update Line2 dynamically?

That’s what the OP of this topic did, and had problems with growing of memory.