Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix crash bug.

  • Loading branch information...
commit 93af18484d3326c1a34d76cee2fa6c0821fdc6a4 1 parent 2aa4db7
@lxcid authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 OAMutableURLRequest.m
View
6 OAMutableURLRequest.m
@@ -138,6 +138,7 @@ - (void)_generateNonce {
CFRelease(theUUID);
if (nonce) {
CFRelease(nonce);
+ nonce = nil;
}
nonce = (NSString *)string;
@@ -184,7 +185,10 @@ - (void) dealloc
[token release];
[(NSObject*)signatureProvider release];
[timestamp release];
- CFRelease(nonce);
+ if (nonce) {
+ CFRelease(nonce);
+ nonce = nil;
+ }
[super dealloc];
}
Please sign in to comment.
Something went wrong with that request. Please try again.