Unverified Commit 9dd3e1e6 authored by Kostia Sokolovskyi's avatar Kostia Sokolovskyi Committed by GitHub

Fix memory leak in _DarwinViewState. (#134938)

parent bac5e5d5
...@@ -665,6 +665,9 @@ abstract class _DarwinViewState<PlatformViewT extends _DarwinView, ControllerT e ...@@ -665,6 +665,9 @@ abstract class _DarwinViewState<PlatformViewT extends _DarwinView, ControllerT e
if (widget.viewType != oldWidget.viewType) { if (widget.viewType != oldWidget.viewType) {
_controller?.dispose(); _controller?.dispose();
_controller = null;
focusNode?.dispose();
focusNode = null;
_createNewUiKitView(); _createNewUiKitView();
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment