From dbc07069deff6d2c77f14202afc60bf3f2a325dc Mon Sep 17 00:00:00 2001 From: Chris Yang Date: Mon, 11 Sep 2023 13:10:06 -0700 Subject: [PATCH] add weakEngine assignemnt in auto release pool block --- shell/platform/darwin/ios/framework/Source/FlutterEngineTest.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];