Search code examples
iosautomatic-ref-countingquartz-2d

Does ARC manage memory for CGPDF types?


I'm working on a custom PDF library for iOS and noticed that there are explicit functions for retaining and releasing CGPDFDocumentRefs andPageRefs. Does ARC handle the retain/release of such opaque types?


Solution

  • No. ARC does not currently handle the memory management for anything except Obj-C objects (which CGPDF things aren't).