File tree 2 files changed +2
-4
lines changed 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -437,9 +437,7 @@ class RenderParagraph extends RenderBox with ContainerRenderObjectMixin<RenderBo
437
437
@override
438
438
void dispose () {
439
439
_removeSelectionRegistrarSubscription ();
440
- // _lastSelectableFragments may hold references to this RenderParagraph.
441
- // Release them manually to avoid retain cycles.
442
- _lastSelectableFragments = null ;
440
+ _disposeSelectableFragments ();
443
441
_textPainter.dispose ();
444
442
super .dispose ();
445
443
}
Original file line number Diff line number Diff line change @@ -1684,7 +1684,7 @@ void main() {
1684
1684
expect (RendererBinding .instance.mouseTracker.debugDeviceActiveCursor (1 ), SystemMouseCursors .basic);
1685
1685
});
1686
1686
1687
- testWidgets ('ElevatedButton in SelectionArea changes mouse cursor when hovered' , (WidgetTester tester) async {
1687
+ testWidgetsWithLeakTracking ('ElevatedButton in SelectionArea changes mouse cursor when hovered' , (WidgetTester tester) async {
1688
1688
// Regression test for https://github.com/flutter/flutter/issues/104595.
1689
1689
await tester.pumpWidget (MaterialApp (
1690
1690
home: SelectionArea (
You can’t perform that action at this time.
0 commit comments