diff --git a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm index 621f2431c95..9e730ee35f7 100644 --- a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm +++ b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterTextInputPlugin.mm @@ -235,11 +235,6 @@ static flutter::TextRange RangeFromBaseExtent(NSNumber* base, - (void)dealloc { [_channel setMethodCallHandler:nil]; - if (_textInputContext) { - [_textInputContext deactivate]; - [_textInputContext discardMarkedText]; - _textInputContext = nil; - } } #pragma mark - Private