CGImage related memory leak in SceneKit application

房东的猫 提交于 2020-01-07 03:00:32

问题


I am writing a 3d game using Scene Kit. When I used Leaks profile in Instruments, I find leaks exist. For the first red cross icon, it says 51 new leaks. Also if you see further down the leak checks area, there are grayed out dashed icons which say no new leaks.

To put it in context, I try to recreate a scene after one unit of play is completed and present that using presentScene.... That would crash after 4 or 5 units of play. I was getting memory warnings and hence I used the leaks profile.

I cannot figure out how to resolve this leak as I am only using the SceneKit API and not any Core Foundation API. It will be great if someone has a solution or can provide relevant pointers to fix this leak.

来源:https://stackoverflow.com/questions/38027273/cgimage-related-memory-leak-in-scenekit-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!