Merge pull request #1017 from hoanglm4/master
fix. Crash happens when HeadlessInAppWebView's dispose function is called in iOS
This commit is contained in:
commit
f06097114d
|
@ -92,4 +92,9 @@ public class HeadlessInAppWebView : FlutterMethodCallDelegate {
|
||||||
HeadlessInAppWebViewManager.webViews.removeValue(forKey: id)
|
HeadlessInAppWebViewManager.webViews.removeValue(forKey: id)
|
||||||
flutterWebView = nil
|
flutterWebView = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deinit {
|
||||||
|
print("HeadlessInAppWebView - dealloc")
|
||||||
|
dispose()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue