Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 9th, 2012  |  syntax: None  |  size: 0.30 KB  |  hits: 6  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Difference in releasing the CGColorSpaceRef by calling CFRelease versus using CGColorSpaceRelease?
  2. CGColorSpaceRef colorspace = CGColorSpaceCreateDeviceRGB();
  3.  
  4. // do stuff
  5.  
  6. CFRelease(colorspace);
  7.        
  8. CGColorSpaceRef colorspace = CGColorSpaceCreateDeviceRGB();
  9.  
  10. // do stuff
  11.  
  12. CGColorSpaceRelease(colorspace);