title: App crashes after showing memory warning in ios 5.1.1 only while taking image from camera
body: <p>Hi I have gone through many question on SO <a href="https://stackoverflow.com/questions/7689119/ios-5-gm-error-more-than-maximum-5-filtered-album-lists-trying-to-register">this too</a> but its not helping me for ios 5.1.1.When i take image for first 2 times its working fine then n3rd time the app shows memory warning and gets crashed.Here is my code:</p>
  
  <pre><code>- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
  [picker dismissModalViewControllerAnimated:YES];
  
  UIImage *image = [info objectForKey:@"UIImagePickerControllerOriginalImage"];
      if (image) {
  
      if ([appdel.arrImageData count]==0) {
          count=0;
  
      }
      count++;
      [appdel.arrImageData addObject:[image copy]];
  }}
  </code></pre>
  
  <p>Any help would be appreciated.</p>