开发者

ios potential leak how to solve?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜