Skip to content

Commit

Permalink
Merge pull request #1017 from hoanglm4/master
Browse files Browse the repository at this point in the history
fix. Crash happens when HeadlessInAppWebView's dispose function is called in iOS
  • Loading branch information
pichillilorenzo authored Apr 15, 2022
2 parents d2520ca + 6635a7e commit f060971
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ios/Classes/HeadlessInAppWebView/HeadlessInAppWebView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,9 @@ public class HeadlessInAppWebView : FlutterMethodCallDelegate {
HeadlessInAppWebViewManager.webViews.removeValue(forKey: id)
flutterWebView = nil
}

deinit {
print("HeadlessInAppWebView - dealloc")
dispose()
}
}

0 comments on commit f060971

Please sign in to comment.