Search code examples
iosaddressbook

potential leak of an object stored into ABMutableMultiValueRef in iOS


I am facing this type of warning when i analyze my code. I share my screenshot please anybody can suggest me?

enter image description here enter image description here

This is my warning. What i have to do?


Solution

  • Yes, I got my answer

    Before return NO just write this line

        if (thisPhones)
        {
            CFRelease(thisPhones);
        }
        return NO;