You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2012/05/04 00:42:11 UTC

ios commit: Fixed CB-594 - Remove checks for retainCount

Updated Branches:
  refs/heads/master 5e8d5235e -> ffc0fd515


Fixed CB-594 - Remove checks for retainCount


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/ffc0fd51
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/ffc0fd51
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/ffc0fd51

Branch: refs/heads/master
Commit: ffc0fd51530c2b52b7d1356fb7d25c9309d3ef25
Parents: 5e8d523
Author: Shazron Abdullah <sh...@apache.org>
Authored: Thu May 3 15:42:02 2012 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Thu May 3 15:42:02 2012 -0700

----------------------------------------------------------------------
 CordovaLib/Classes/CDVContact.m |   18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/ffc0fd51/CordovaLib/Classes/CDVContact.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVContact.m b/CordovaLib/Classes/CDVContact.m
index 9640569..50974cd 100644
--- a/CordovaLib/Classes/CDVContact.m
+++ b/CordovaLib/Classes/CDVContact.m
@@ -211,27 +211,23 @@ static NSDictionary*	org_apache_cordova_contacts_defaultFields = nil;
 	// ugly but it works
 	if (org_apache_cordova_contacts_ABtoW3C != nil) {
 		[org_apache_cordova_contacts_ABtoW3C release];
-		if ([org_apache_cordova_contacts_ABtoW3C retainCount] == 1)
-			org_apache_cordova_contacts_ABtoW3C = nil;
+        org_apache_cordova_contacts_ABtoW3C = nil;
 	}
 	if (org_apache_cordova_contacts_W3CtoAB != nil) {
 		[org_apache_cordova_contacts_W3CtoAB release];
-		if ([org_apache_cordova_contacts_W3CtoAB retainCount] == 1)
-			org_apache_cordova_contacts_W3CtoAB = nil;
+        org_apache_cordova_contacts_W3CtoAB = nil;
 	}
 	if (org_apache_cordova_contacts_W3CtoNull != nil) {
 		[org_apache_cordova_contacts_W3CtoNull release];
-		if ([org_apache_cordova_contacts_W3CtoNull retainCount] == 1)
-			org_apache_cordova_contacts_W3CtoNull = nil;
-	}if (org_apache_cordova_contacts_objectAndProperties != nil) {
+        org_apache_cordova_contacts_W3CtoNull = nil;
+	}
+    if (org_apache_cordova_contacts_objectAndProperties != nil) {
 		[org_apache_cordova_contacts_objectAndProperties release];
-		if ([org_apache_cordova_contacts_objectAndProperties retainCount] == 1)
-			org_apache_cordova_contacts_objectAndProperties = nil;
+        org_apache_cordova_contacts_objectAndProperties = nil;
 	}
 	if (org_apache_cordova_contacts_defaultFields != nil) {
 		[org_apache_cordova_contacts_defaultFields release];
-		if ([org_apache_cordova_contacts_defaultFields retainCount] == 1)
-			org_apache_cordova_contacts_defaultFields = nil;
+        org_apache_cordova_contacts_defaultFields = nil;
 	}
 }