Permalink
Browse files

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

…ment and released in dealloc
  • Loading branch information...
blynch authored and adamjernst committed Apr 20, 2011
1 parent 9faca4a commit 96923b95d5bea09e8856d2db3ecab82057705e1a
Showing with 2 additions and 1 deletion.
  1. +2 −1 OAMutableURLRequest.m
View
@@ -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];

0 comments on commit 96923b9

Please sign in to comment.