Skip to content

Commit

Permalink
fix mem leaks in TTCatalog
Browse files Browse the repository at this point in the history
  • Loading branch information
diederich committed Jan 21, 2012
1 parent ff2fe77 commit fb96b04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samples/TTCatalog/Classes/PhotoTest2Controller.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
@implementation PhotoTest2Controller

- (void)viewDidLoad {
self.photoSource = [[MockPhotoSource alloc]
self.photoSource = [[[MockPhotoSource alloc]
initWithType:MockPhotoSourceNormal
//initWithType:MockPhotoSourceDelayed
// initWithType:MockPhotoSourceLoadError
// initWithType:MockPhotoSourceDelayed|MockPhotoSourceLoadError
title:@"Flickr Photos"
photos:[[NSArray alloc] initWithObjects:
photos:[NSArray arrayWithObjects:
[[[MockPhoto alloc]
initWithURL:@"http://farm4.static.flickr.com/3246/2957580101_33c799fc09_o.jpg"
smallURL:@"http://farm4.static.flickr.com/3246/2957580101_d63ef56b15_t.jpg"
Expand Down Expand Up @@ -273,7 +273,7 @@ - (void)viewDidLoad {
// smallURL:@"http://farm4.static.flickr.com/3280/2949707060_8139284ba5_t.jpg"
// size:CGSizeMake(800, 533)] autorelease],
// nil]
];
] autorelease];
}

@end

0 comments on commit fb96b04

Please sign in to comment.