fixed memory leaks

This commit is contained in:
Jeena Paradies 2012-02-06 20:40:13 +01:00
parent 4216237c0f
commit 9a492d8418
57 changed files with 48 additions and 3229 deletions

View file

@ -19,6 +19,13 @@
#define IMAGE_WIDTH 320
#define IMAGE_HEIGHT 400
- (void)dealloc {
[chosenImageView release];
[chosenImageController release];
[super dealloc];
}
- (void)viewDidLoad {
[super viewDidLoad];
@ -28,7 +35,6 @@
self.navigationItem.title = @"ImagePicker Demo";
self.navigationController.navigationBar.translucent = YES;
self.navigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent;
}
@ -125,7 +131,7 @@
// AnotherViewController *anotherViewController = [[AnotherViewController alloc] initWithNibName:@"AnotherView" bundle:nil];
// [self.navigationController pushViewController:anotherViewController animated:YES];
// [anotherViewController release];
if (indexPath.section == 0) {
JPImagePickerController *imagePickerController = [[JPImagePickerController alloc] init];
@ -216,14 +222,5 @@
return [UIImage imageNamed:[NSString stringWithFormat:@"i%i.png", (imageNumber % 4) + 1]];
}
# pragma mark -
- (void)dealloc {
[super dealloc];
}
@end