Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
9dd3e1e6
Unverified
Commit
9dd3e1e6
authored
Sep 18, 2023
by
Kostia Sokolovskyi
Committed by
GitHub
Sep 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memory leak in _DarwinViewState. (#134938)
parent
bac5e5d5
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
108 additions
and
104 deletions
+108
-104
platform_view.dart
packages/flutter/lib/src/widgets/platform_view.dart
+3
-0
platform_view_test.dart
packages/flutter/test/widgets/platform_view_test.dart
+105
-104
No files found.
packages/flutter/lib/src/widgets/platform_view.dart
View file @
9dd3e1e6
...
...
@@ -665,6 +665,9 @@ abstract class _DarwinViewState<PlatformViewT extends _DarwinView, ControllerT e
if
(
widget
.
viewType
!=
oldWidget
.
viewType
)
{
_controller
?.
dispose
();
_controller
=
null
;
focusNode
?.
dispose
();
focusNode
=
null
;
_createNewUiKitView
();
return
;
}
...
...
packages/flutter/test/widgets/platform_view_test.dart
View file @
9dd3e1e6
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment