From 2279aee4ff4e7c363392dc9de4af278f96c2dca7 Mon Sep 17 00:00:00 2001 From: David Weber Date: Mon, 20 Jul 2015 13:09:58 +0200 Subject: [PATCH] Fix crash on browser window close (https://issues.apache.org/jira/browse/CB-9167) --- src/ios/CDVInAppBrowser.m | 5 +++++ 1 file changed, 5 insertions(+) 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