From 9badc35eaa17b17e46b87b9894492a6587e351b6 Mon Sep 17 00:00:00 2001 From: Jesse Ezell Date: Thu, 14 Mar 2024 22:52:06 -0700 Subject: [PATCH] dispose another text painter --- lib/src/widgets/others/proxy.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/src/widgets/others/proxy.dart b/lib/src/widgets/others/proxy.dart index 3e929286..9504a11f 100644 --- a/lib/src/widgets/others/proxy.dart +++ b/lib/src/widgets/others/proxy.dart @@ -299,4 +299,10 @@ class RenderParagraphProxy extends RenderProxyBox _prototypePainter.layout( minWidth: constraints.minWidth, maxWidth: constraints.maxWidth); } + + @override + void dispose() { + super.dispose(); + _prototypePainter.dispose(); + } }