Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix mem leaks in TTCatalog

  • Loading branch information...
commit fb96b04a8f4bdd977c3e6ce7af61b0336e3a16d1 1 parent ff2fe77
@diederich diederich authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 samples/TTCatalog/Classes/PhotoTest2Controller.m
View
6 samples/TTCatalog/Classes/PhotoTest2Controller.m
@@ -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"
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.