简体   繁体   中英

How can I solve this memory leak in iOS App?

After analyzing my application with Instruments, the tool tells me I have memory leaks but I do not see why that message if I think I am releasing memory correctly. Any idea? Thanks in advance.

在此处输入图片说明

Make sure that syncTask is not retained in enqueue: method.

And one more possibility may be if you implement any delegate in TaskQueue make sure your are using assign not strong or retain in property.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM