Serious memory issues with the UIImagePickerController using the camera

I noticed that when I load the UIImagePickerController and I take a picture with it, it gets called didReceiveMemoryWarning. In addition, there is a significant memory leak in the Tools (not me, I swear!). I heard that this is a problem with the UIImagePickerController, but I'm not sure how to fix it. Here is my implementation of UIImagePickerController.

    UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; // Create the imagePicker
    imagePicker.delegate = self; 
    imagePicker.allowsEditing = YES; // Allow editing of the images
    imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;
    [self presentModalViewController:imagePicker animated:YES];
    [imagePicker release];

Any ideas? I really don't want to sacrifice such a useful feature.

+1
source share
2 answers

SDK 3.2?
UIImagePickerController .

, ​​ 3.2, 3.2.

, . , didReceiveMemoryWarning.

0

, 320x460. .

0