fixed memory leaks
This commit is contained in:
parent
4216237c0f
commit
9a492d8418
57 changed files with 48 additions and 3229 deletions
|
@ -22,10 +22,18 @@
|
|||
if (self = [super initWithNibName:@"JPImagePickerOverviewController" bundle:nil]) {
|
||||
// Custom initialization
|
||||
imagePickerController = newImagePickerController;
|
||||
[imagePickerController retain];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc {
|
||||
[imagePickerController release];
|
||||
[detailController release];
|
||||
[scrollView release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
|
||||
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
|
||||
- (void)viewDidLoad {
|
||||
|
@ -121,12 +129,4 @@
|
|||
}
|
||||
|
||||
|
||||
- (void)dealloc {
|
||||
[imagePickerController release];
|
||||
[detailController release];
|
||||
[scrollView release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
|
|
Reference in a new issue