fix. Crash happens when HeadlessInAppWebView's dispose function is called in iOS

This commit is contained in:
Le Minh Hoang 2021-10-24 23:11:21 +07:00 committed by GitHub
parent f06bcdf695
commit 42743f23eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,10 @@ public class HeadlessInAppWebView : FlutterMethodCallDelegate {
self.channel?.setMethodCallHandler(self.handle)
}
deinit {
dispose()
}
public override func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
let arguments = call.arguments as? NSDictionary