MFDocumentManager:cocoaAnnotationsForPage possible memory Leak

ades.chacal's Avatar


27 Jan, 2015 02:24 PM

When I'm calling cocoaAnnotationsForPage to get the Dictionary information seems to not release the object after I want to check the next page. This object consumes so much memory and I can't hold more than one page information. The referenceCounter is always 2, I tried using @autoreleasepool and the method emptyCache but there is no result. I'm using ARC.

  1. Support Staff 1 Posted by Matteo on 28 Jan, 2015 11:50 AM

    Matteo's Avatar


    I don't see it, at least on an handful of pdfs. If there's a leak, it might depend on the kind of annotation or it is just an older version of the kit being used. What version are you using?

    You can see it in the debugger with this line of code

    NSLog(@"%@", [MFDocumentManager version]);
  2. 2 Posted by ades.chacal on 02 Feb, 2015 03:02 PM

    ades.chacal's Avatar

    You are right, my version is too old and using the last version the problem is solved.


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

15 Apr, 2020 04:25 AM
26 Feb, 2020 07:23 AM
27 Jun, 2019 06:08 AM
23 Nov, 2018 01:54 PM
14 Nov, 2018 04:37 PM