diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/SemanticsObject.mm b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/SemanticsObject.mm index 6d30c34d1a4..50ff757c515 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/SemanticsObject.mm +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/SemanticsObject.mm @@ -100,7 +100,7 @@ CGRect ConvertRectToGlobal(SemanticsObject* reference, CGRect local_rect) { uid:(int32_t)uid { self = [super initWithBridge:bridge uid:uid]; if (self) { - _nativeSwitch = [[[UISwitch alloc] init] retain]; + _nativeSwitch = [[UISwitch alloc] init]; } return self; }