title: UIGraphicsGetImageFromCurrentImageContext leak
body: <p>I have written the following code snippet to take screen snapshot:</p>
  
  <pre><code>UIGraphicsBeginImageContext(animationView.frame.size);
  [[window layer] renderInContext:UIGraphicsGetCurrentContext()];
  UIImage* screenshot = UIGraphicsGetImageFromCurrentImageContext();
  UIGraphicsEndImageContext();
  </code></pre>
  
  <p>But, UIGraphicsGetImageFromCurrentImageContext seems to be leaking. Is this correct?</p>
  
  <p>In Instruments I could not get the exact leak point. In activity monitor I observed that when I switch to the UI that  executes the above code snippet memory increments by some MB. After this point it never decreases.
  Does UIGraphicsGetImageFromCurrentImageContext has memory leak? How do I solve this?</p>
  
  <h2>Edit</h2>
  
  <p>Instruments analysis
  Activity Monitor: shows the memory hike when this line of code is executed; never decreases even after releasing screenshot (UIImage)</p>
  
  <p>Leaks and allocation, Heap Snapshot: Does not show any leak OR this allocation.</p>