Any suggestion for a subsequent memory leak

I am developing an application using NSOPerationqueue. It shows me a leak when adding an OperationBlock to the queue, as shown in the image below. Please help me find a leak permit. If you need more screenshots or details than please let me know.

You can also see my code in the image.

enter image description here

enter image description here

enter image description here

+5
source share
2 answers

if your [self parsing: tempdata: isgion] saves the isgion string, you must free the isgion string.

+1
source

Instead of using stringWithFormat, you can use NSString * aregion = [[NSString alloc] initWithFormat: @ ""];

// your operations

[isgion release];

0
source

All Articles