commit | 00bd1f46b75b7850f526718c371d294906663c78 | [log] [tgz] |
---|---|---|
author | ColdPaleLight <31977171+ColdPaleLight@users.noreply.github.com> | Fri Aug 27 04:21:01 2021 +0800 |
committer | GitHub <noreply@github.com> | Thu Aug 26 13:21:01 2021 -0700 |
tree | b165d3fc7f01412aacf81f3e21eff8ccb73ee4af | |
parent | 20cff26665998a728269ac0ed008ad9e96ee2fb4 [diff] |
Fix memory leak in FlutterSwitchSemanticsObject (#28065)
diff --git a/shell/platform/darwin/ios/framework/Source/SemanticsObject.mm b/shell/platform/darwin/ios/framework/Source/SemanticsObject.mm index 6d30c34..50ff757 100644 --- a/shell/platform/darwin/ios/framework/Source/SemanticsObject.mm +++ b/shell/platform/darwin/ios/framework/Source/SemanticsObject.mm
@@ -100,7 +100,7 @@ uid:(int32_t)uid { self = [super initWithBridge:bridge uid:uid]; if (self) { - _nativeSwitch = [[[UISwitch alloc] init] retain]; + _nativeSwitch = [[UISwitch alloc] init]; } return self; }