Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory issue #9

Merged
merged 2 commits into from May 31, 2011
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
File renamed without changes.
6 changes: 3 additions & 3 deletions OAAtachment.m → OAAttachment.m
Expand Up @@ -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;
}
Expand All @@ -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];
Expand Down
3 changes: 2 additions & 1 deletion OAMutableURLRequest.m
Expand Up @@ -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) {
Expand Down Expand Up @@ -208,6 +208,7 @@ - (NSString *)_signatureBaseString {

- (void) dealloc
{
[consumer release];
[token release];
[(NSObject*)signatureProvider release];
[timestamp release];
Expand Down