UIGraphicsGetImageFromCurrentImageContext memory leak with previews

前端 未结 7 934
悲&欢浪女
悲&欢浪女 2020-11-27 19:19

I\'m trying to create previews images of pages in a PDF but I have some problems with the release of memory.

I wrote a simple test algorithm that cycles on the probl

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-27 19:57

    your line of crash you can update it like following

    get one UIimage out of loop

    rendered_image = UIGraphicsGetImageFromCurrentImageContext();

提交回复
热议问题