cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [1/2] cordova-plugin-inappbrowser git commit: Fix crash on browser window close (https://issues.apache.org/jira/browse/CB-9167)
Date Tue, 17 Nov 2015 01:48:31 GMT
Repository: cordova-plugin-inappbrowser
Updated Branches:
  refs/heads/master e89f60263 -> 5a558344f


Fix crash on browser window close (https://issues.apache.org/jira/browse/CB-9167)


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/commit/2279aee4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/tree/2279aee4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/diff/2279aee4

Branch: refs/heads/master
Commit: 2279aee4ff4e7c363392dc9de4af278f96c2dca7
Parents: 5c7a9d9
Author: David Weber <dave@veryflatcat.com>
Authored: Mon Jul 20 13:09:58 2015 +0200
Committer: David Weber <dave@veryflatcat.com>
Committed: Mon Jul 20 13:09:58 2015 +0200

----------------------------------------------------------------------
 src/ios/CDVInAppBrowser.m | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/blob/2279aee4/src/ios/CDVInAppBrowser.m
----------------------------------------------------------------------
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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message