开发者

ios potential leak how to solve?

开发者 https://www.devze.com 2023-04-03 10:52 出处:网络
I\'ve analyzed my project: and this is the result: what means an开发者_StackOverflow中文版d how can I solve this?You should release pdfURL after you have used it to create pdf.

I've analyzed my project: and this is the result:

ios potential leak how to solve?

what means an开发者_StackOverflow中文版d how can I solve this?


You should release pdfURL after you have used it to create pdf.

Try...

CGPDFDocumentRef pdf = CGPDFDocumentCreateWithURL(pdfURL);
CFRelease(pdfURL);


It looks like you might want to familiarise yourself with the Memory Management Programming Guide for Core Foundation, specifically the ownership policy.

In short, you have to CFRelease() the pdfURL object. :-)

0

精彩评论

暂无评论...
验证码 换一张
取 消