title: imageWithCGImage and memory
body: <p>If I use <code>[UIImage imageWithCGImage:]</code>, passing in a <code>CGImageRef</code>, do I then release the <code>CGImageRef</code> or does UIImage take care of this itself when it is deallocated?</p>
  
  <p>The documentation isn't entirely clear. It says "This method does not cache the image object."</p>
  
  <p>Originally I called <code>CGImageRelease</code> on the CGImageRef after passing it to <code>imageWithCGImage:</code>, but that caused a <code>malloc_error_break</code> warning in the Simulator claiming a double-free was occurring.</p>