I am trying to repair all the memory leaks in my app. I am having some issues with this line of code
[appDelegate setPendingConnectionsArray:[[NSArray alloc]initWithArray:[response JSONValue]]];
Here PendingConnectionsArray is an NSArray defined in appDelegate. When i analyze my app using analyzer tool of XCode. then it says potential leak of an object but no further information is there. How can i solve this leak issue.
Situation is same for this line too
phone_book_data.contact_image = [UIImage imageWithData:(NSData *)ABPersonCopyImageData(aSource)];
Thanks in advance.