Merge pull request #1017 from hoanglm4/master

fix. Crash happens when HeadlessInAppWebView's dispose function is called in iOS
This commit is contained in:
Lorenzo Pichilli 2022-04-16 00:24:49 +02:00 committed by GitHub
commit f06097114d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -92,4 +92,9 @@ public class HeadlessInAppWebView : FlutterMethodCallDelegate {
HeadlessInAppWebViewManager.webViews.removeValue(forKey: id)
flutterWebView = nil
}
deinit {
print("HeadlessInAppWebView - dealloc")
dispose()
}
}