diff --git a/src/ios/CDVInAppBrowser.m b/src/ios/CDVInAppBrowser.m index 24f56c4..9c11a4e 100644 --- a/src/ios/CDVInAppBrowser.m +++ b/src/ios/CDVInAppBrowser.m @@ -477,6 +477,11 @@ return self; } +// Prevent crashes on closing windows +-(void)dealloc { + self.webView.delegate = nil; +} + - (void)createViews { // We create the views in code for primarily for ease of upgrades and not requiring an external .xib to be included