Leak - GeneralBlock-3584

后端 未结 4 863
有刺的猬
有刺的猬 2020-12-14 12:31

When i try to check leaks of my iPhone App using Instruments, everything is just fine. Same App on actual real device shows this leak for a few times during the app launch.

4条回答
  •  我在风中等你
    2020-12-14 13:29

    You have nothing to worry about, this is false positive from Instruments.
    It has to do with freeing resources of the thread that has being terminated. They just hang around until next thread is done and cleans resources after the one which is terminated previously. Instruments take this for a 'leak', but it's a feature of pthreads implementation on the iOS which in perfect world would be handled differently. More on this on the Apple's dev forum here and here.

提交回复
热议问题