diff --git a/shell/platform/darwin/ios/framework/Source/FlutterEngineTest.mm b/shell/platform/darwin/ios/framework/Source/FlutterEngineTest.mm index 2971c23f906b6..9a64083b1d280 100644 --- a/shell/platform/darwin/ios/framework/Source/FlutterEngineTest.mm +++ b/shell/platform/darwin/ios/framework/Source/FlutterEngineTest.mm @@ -113,7 +113,7 @@ - (void)testInfoPlist { - (void)testDeallocated { __weak FlutterEngine* weakEngine = nil; - { + @autoreleasepool { FlutterEngine* engine = [[FlutterEngine alloc] initWithName:@"foobar"]; weakEngine = engine; [engine run];