3

I'm using Apple's sample code (verbatim) for Document Interaction using the QuickLook framework/QLPreviewController to display PDFs to users (PDFs are roughly 4-5 MB).

When running this code through Instruments, Memory Allocation grows. However, it never seems to dealloc. Is this a known issue or is Apple's sample code missing something?

1 Answers1

1

I tried it and even though the number of allocations increases, it keeps stable after some time. This is most likely due to a "warmup" of the engine used to display those PDFs. Some objects are created when the API is first called and kept in memory for reuse.

Also note that there is no memory leak.

Allocations vs Leaks

Resh32
  • 6,500
  • 3
  • 32
  • 40