Skip to content
Browse files

Merge pull request #9 from adamjernst/master

Memory issue
  • Loading branch information...
2 parents d85006f + 96923b9 commit a155fc1584c1eeac86de2bd8b5ed0c4b99779b5a @jdg committed May 31, 2011
Showing with 5 additions and 4 deletions.
  1. 0 OAAtachment.h → OAAttachment.h
  2. +3 −3 OAAtachment.m → OAAttachment.m
  3. +2 −1 OAMutableURLRequest.m
View
0 OAAtachment.h → OAAttachment.h
File renamed without changes.
View
6 OAAtachment.m → OAAttachment.m
@@ -10,13 +10,13 @@
@implementation OAAttachment
-@synthesize name, filename, contentType, data;
+@synthesize name, fileName, contentType, data;
- (id)initWithName:(NSString *)aName filename:(NSString *)aFilename contentType:(NSString *)aContentType data:(NSData *)aData{
self = [super init];
if(self){
self.name = aName;
- self.filename = aFilename;
+ self.fileName = aFilename;
self.contentType = aContentType;
self.data = aData;
}
@@ -25,7 +25,7 @@ - (id)initWithName:(NSString *)aName filename:(NSString *)aFilename contentType:
- (void)dealloc{
[name release];
- [filename release];
+ [fileName release];
[contentType release];
[data release];
[super dealloc];
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];

0 comments on commit a155fc1

Please sign in to comment.
Something went wrong with that request. Please try again.