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

@ -12,7 +12,7 @@
@implementation JPImagePickerController
@synthesize overviewController, modalNavigationController, delegate, dataSource, originalStatusBarStyle;
@synthesize overviewController, modalNavigationController, delegate, dataSource, originalStatusBarStyle, imagePickerTitle;
/*
// The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
@ -24,6 +24,13 @@
}
*/
- (void)dealloc {
[overviewController release];
[modalNavigationController release];
[imagePickerTitle release];
[super dealloc];
}
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
@ -41,8 +48,13 @@
}
- (void)setImagePickerTitle:(NSString *)newTitle {
imagePickerTitle = newTitle;
[overviewController setImagePickerTitle:newTitle];
if (newTitle != self.imagePickerTitle) {
[imagePickerTitle release];
imagePickerTitle = newTitle;
[imagePickerTitle retain];
[overviewController setImagePickerTitle:newTitle];
}
}
- (NSString *)imagePickerTitle {
@ -94,10 +106,4 @@
// e.g. self.myOutlet = nil;
}
- (void)dealloc {
[super dealloc];
}
@end