Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix for the memory use around the consumer object. Retained on assign…

…ment and released in dealloc
  • Loading branch information...
commit 96923b95d5bea09e8856d2db3ecab82057705e1a 1 parent 9faca4a
@blynch blynch authored committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  OAMutableURLRequest.m
View
3  OAMutableURLRequest.m
@@ -47,7 +47,7 @@ - (id)initWithURL:(NSURL *)aUrl
cachePolicy:NSURLRequestReloadIgnoringCacheData
timeoutInterval:10.0];
- consumer = aConsumer;
+ consumer = [aConsumer retain];
// empty token for Unauthorized Request Token transaction
if (aToken == nil) {
@@ -208,6 +208,7 @@ - (NSString *)_signatureBaseString {
- (void) dealloc
{
+ [consumer release];
[token release];
[(NSObject*)signatureProvider release];
[timestamp release];
Please sign in to comment.
Something went wrong with that request. Please try again.