From 1da38af2ce7ea78015907d784e4643a3a220cab0 Mon Sep 17 00:00:00 2001 From: Ethan Wong Date: Fri, 22 Apr 2022 02:54:03 +0800 Subject: [PATCH] [macOS] Fix IME input issue caused on FlutterTextInputPlugin dealloc. (flutter/engine#31879) --- .../darwin/macos/framework/Source/FlutterTextInputPlugin.mm | 5 ----- 1 file changed, 5 deletions(-) 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