Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Commit

Permalink
Merge branch 'Analyzer'
Browse files Browse the repository at this point in the history
  • Loading branch information
alinx committed Aug 15, 2011
2 parents c1eaba0 + e478880 commit ebc005f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions FacebookExporter.m
Original file line number Diff line number Diff line change
Expand Up @@ -1124,8 +1124,6 @@ - (void)_finishCurrentUploadWithSuccess:(BOOL)success

[self _incrementUploadProgress:[[picture data] length]];

[picture release];

// Upload the next file
[self _uploadNextImage];
}
Expand Down Expand Up @@ -1177,7 +1175,7 @@ - (void)_uploadNextImage
NSLog(@"Uploading %@ to Facebook", [picture title]);
NSLog(@"nextImagePath %@", nextImagePath);

NSData *imageData = [[NSData alloc] initWithContentsOfFile:nextImagePath];
NSData *imageData = [[[NSData alloc] initWithContentsOfFile:nextImagePath] autorelease];
if (!imageData || ([imageData length] == 0))
{
// Exit when there's an error like this
Expand Down
4 changes: 2 additions & 2 deletions FacebookRequestController.m
Original file line number Diff line number Diff line change
Expand Up @@ -305,14 +305,14 @@ - (void)request:(FacebookRequest *)request didLoad:(id)result
}

if ([[request httpMethod] compare:@"GET"] == NSOrderedSame) {
NSMutableArray *albumList = [[NSMutableArray alloc] init];
NSMutableArray *albumList = [[[NSMutableArray alloc] init] autorelease];

// Get the list of albums
NSArray *albums = (NSArray *)[(NSDictionary *)result objectForKey:@"data"];

for (NSInteger i = 0; i < [albums count]; i++) {
NSDictionary *album = (NSDictionary *)[albums objectAtIndex:i];
FacebookAlbum *albumInfo = [[FacebookAlbum alloc] init];
FacebookAlbum *albumInfo = [[[FacebookAlbum alloc] init] autorelease];

[albumInfo setAlbumName:[album objectForKey:@"name"]];
[albumInfo setAlbumID:[album objectForKey:@"id"]];
Expand Down

0 comments on commit ebc005f

Please sign in to comment.