Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
how to release CGImageRef when i call CGContextDrawImage????
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to release CGImageRef when i call CGContextDrawImage????



i write a sample code ,it draw a memory buffer,using   CGImageRef  and CGContextDrawImage.but,wwhen i want to release CGImageRef  ,some error occur:bus error 
   my code is like:
 CGContextDrawImage(viewContext, bounds, image);
 CGImageRelease(image);

what should i do? using code search ,i found that there are a lot of code like mine.....
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.