title: Memory leak after i take photo from UIImagePickerControllerSourceTypeCamera
body: <p>In my app i start the camera to let the user take a photo :</p>
  
  <pre><code>    UIImagePickerController *imagePickerControllerSubject = [[UIImagePickerController alloc] init];
  
      imagePickerControllerSubject.delegate = self;
  
      imagePickerControllerSubject.sourceType =  UIImagePickerControllerSourceTypeCamera;
  
      [self presentModalViewController:imagePickerControllerSubject animated:YES];
  </code></pre>
  
  <p>And after the photo is taken, i got a memory leak, you can see my screenshot from Xcode Instrument.</p>
  
  <p><img src="https://i.stack.imgur.com/AfKWG.png" alt="enter image description here"></p>
  
  <p>I isolated the code. I m sure it comes from the camera, not from my app, i left nothing in my didFinishPickingImage function.</p>
  
  <pre><code>    - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo
      {
  
             [picker dismissModalViewControllerAnimated:YES];
  
             return;
  
      }
  </code></pre>
  
  <p>I use ARC so i don't need to release imagePickerControllerSubject</p>
  
  <p>Here is the screenshot from Xcode Instruments</p>
  
  <p>I use the latest version of ios7</p>
  
  <p>Any idea ?</p>
  
  <p>Thanks</p>
  
  <p>EDIT</p>
  
  <p>I past here the whole code of my view controller. It can't be more simple. And don't forget that i get this memory leak only with iOS 7 and only when the souce type is camera.</p>
  
  <pre><code>    #import "FeedbackVC.h"
  
      @interface FeedbackVC ()
  
      @end
  
      @implementation FeedbackVC
  
      - (IBAction)onClickTakePicture
      {
  
          NSLog(@"onClickTakePicture");
  
          imagePickerControllerSubject = [[UIImagePickerController alloc] init];
  
          imagePickerControllerSubject.delegate = self;
  
          imagePickerControllerSubject.sourceType =               UIImagePickerControllerSourceTypeCamera;
  
          [self presentModalViewController:imagePickerControllerSubject animated:YES];
  
      }
  
       - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo
       {
  
  
           picker.delegate = nil;
           [self dismissViewControllerAnimated:NO completion:nil];
           picker = nil;
  
           NSLog(@"imagePickerController");
  
       }
  
       - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
       {
          self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
  
          if (self)
          {
              // Custom initialization
              if (self)
              {
                self.navigationItem.title = @"Feedback";
  
                self.title = @"Feedback";
  
                self.tabBarItem.image = [UIImage imageNamed:@"second"];
              }
  
          }
  
  
          return self;
      }
  
      - (void)viewDidLoad
      {
         [super viewDidLoad];
  
      }
  
       - (void)didReceiveMemoryWarning
       {
            [super didReceiveMemoryWarning];
            // Dispose of any resources that can be recreated.
       }
  
       @end
  </code></pre>