Skip to content

Commit

Permalink
Fix crash bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
lxcid committed Oct 31, 2011
1 parent 2aa4db7 commit 93af184
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion OAMutableURLRequest.m
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ - (void)_generateNonce {
CFRelease(theUUID);
if (nonce) {
CFRelease(nonce);
nonce = nil;
}

nonce = (NSString *)string;
Expand Down Expand Up @@ -184,7 +185,10 @@ - (void) dealloc
[token release];
[(NSObject*)signatureProvider release];
[timestamp release];
CFRelease(nonce);
if (nonce) {
CFRelease(nonce);
nonce = nil;
}
[super dealloc];
}

Expand Down

0 comments on commit 93af184

Please sign in to comment.