Dispose ValueNotifier instances in RenderEditable (#104591)

This commit is contained in:
Tomasz Gucio
2022-05-25 22:13:11 +02:00
committed by GitHub
parent aa1c43bbde
commit 2e7cea6dfe

View File

@@ -382,6 +382,8 @@ class RenderEditable extends RenderBox with RelayoutWhenSystemFontsChangeMixin,
_clipRectLayer.layer = null;
_cachedBuiltInForegroundPainters?.dispose();
_cachedBuiltInPainters?.dispose();
_selectionStartInViewport.dispose();
_selectionEndInViewport.dispose();
super.dispose();
}