Updated Branches:
  refs/heads/master b74752f42 -> ef67dcf7b

Fix unregistering of ViewControllers in CDVURLProtocol.m

Fixes https://issues.apache.org/jira/browse/CB-1694


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/ef67dcf7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/ef67dcf7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/ef67dcf7

Branch: refs/heads/master
Commit: ef67dcf7bce56c69299bb89ab16c1803d0edd895
Parents: b74752f
Author: Andrew Grieve <agri...@chromium.org>
Authored: Sat Oct 20 22:11:47 2012 -0400
Committer: Andrew Grieve <agri...@chromium.org>
Committed: Sat Oct 20 22:11:47 2012 -0400

----------------------------------------------------------------------
 CordovaLib/Classes/CDVURLProtocol.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/ef67dcf7/CordovaLib/Classes/CDVURLProtocol.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVURLProtocol.m 
b/CordovaLib/Classes/CDVURLProtocol.m
index 012775d..2e37b06 100644
--- a/CordovaLib/Classes/CDVURLProtocol.m
+++ b/CordovaLib/Classes/CDVURLProtocol.m
@@ -64,7 +64,7 @@ static NSMutableSet* gRegisteredControllers = nil;
 
 + (void)unregisterViewController:(CDVViewController*)viewController
 {
-    [gRegisteredControllers removeObject:viewController];
+    [gRegisteredControllers removeObject:[NSNumber numberWithLongLong:(long 
long)viewController]];
 }
 
 + (BOOL)canInitWithRequest:(NSURLRequest*)theRequest

Reply via email to