Update HeadlessInAppWebView.swift

This commit is contained in:
Lorenzo Pichilli 2022-04-16 00:24:16 +02:00 committed by GitHub
parent 42743f23eb
commit 6635a7e8df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -21,10 +21,6 @@ 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
@ -96,4 +92,9 @@ public class HeadlessInAppWebView : FlutterMethodCallDelegate {
HeadlessInAppWebViewManager.webViews.removeValue(forKey: id)
flutterWebView = nil
}
deinit {
print("HeadlessInAppWebView - dealloc")
dispose()
}
}