title: Memory leak: CGDataProviderCreateWithCopyOfData
body: <p>I make use of the UIImage+Resize library to resize my images directly after taking them.</p>
  
  <p>I do get a memory leak with the following code:</p>
  
  <pre><code>CGContextDrawImage(UIGraphicsGetCurrentContext(), CGRectMake(0, 0, srcSize.width, srcSize.height), imgRef);
  UIImage* resizedImage = UIGraphicsGetImageFromCurrentImageContext();
  UIGraphicsEndImageContext();
  </code></pre>
  
  <p>CGDataProviderCreateWithCopyOfData memory leak in Instruments. </p>
  
  <p>I tried adding it into a @autoreleasepool as per other StackOverflow posts.</p>