0

I am using the following method fro pdf manipulation

CGPDFDictionaryRef pageDictionary = CGPDFPageGetDictionary(pPage);
 CGPDFArrayRef outputArray;
 if(!CGPDFDictionaryGetArray(pageDictionary, "Annots", &outputArray)) {
 }

On analyzing using xcode i am getting memory leak for outputArrAY. How can i release outputArray which is a CGPDFArrayRef.

Also how can i release tempStr in the following method in arc :

 NSString *tempStr = (__bridge NSString *)CGPDFStringCopyTextString(objectString);
user7388
  • 1,741
  • 2
  • 19
  • 25
Priyanka V
  • 834
  • 2
  • 12
  • 34

0 Answers0