CGContextDrawPDFPage memory Leak - App Crash

前端 未结 1 1368
逝去的感伤
逝去的感伤 2020-12-20 15:22

When I analyze my app with Instruments, I found out that data allocated by CGContextDrawPDFPage is not released immediately. App getting crash because of

1条回答
  •  旧巷少年郎
    2020-12-20 15:25

    This is by design. To allow faster re-draws, the CGPDFDocumentRef caches page resources.

    The only way to empty this cache is to release and re-open the CGPDFDocumentRef.

    0 讨论(0)
提交回复
热议问题