Memory issue #9

Merged
merged 2 commits into from May 31, 2011
Jump to file or symbol
Failed to load files and symbols.
+5 −4
Split
File renamed without changes.
@@ -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
@@ -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];