From b2529fd20acaeb1728b82d7a405fe2a1559db2fd Mon Sep 17 00:00:00 2001 From: Jenn Magder Date: Wed, 17 Aug 2022 11:15:05 -0700 Subject: [PATCH] Prevent leaking inputViews between iOS unit tests (flutter/engine#35450) --- .../darwin/ios/framework/Source/FlutterTextInputPluginTest.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterTextInputPluginTest.mm b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterTextInputPluginTest.mm index 41ed193411a..aec571a8125 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterTextInputPluginTest.mm +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterTextInputPluginTest.mm @@ -1137,6 +1137,7 @@ FLUTTER_ASSERT_ARC @"composingExtent" : @3 }]; OCMVerify([mockInputView setInputDelegate:[OCMArg isNotNil]]); + [inputView removeFromSuperview]; } }