objective c - Got warning "Incorrect decrement of the reference count of an object that is not owned at this point by the caller" -


when 'analyse', got warning "incorrect decrement of reference count of object not owned @ point caller" in this. (xcode 4.1+)

i can understant it's better "kill" object it's proper class, there way outside without warning?

thanks!

nslog(@"--[%s:%d]",__pretty_function__, __line__); myappdelegate* appdelegate = [[uiapplication sharedapplication] delegate];    if (appdelegate.referencespopup != nil) {         [appdelegate.referencespopup release]; // warning         appdelegate.referencespopup = nil;      }       } 

most likely, way in acquiring object being stored in referencespopup, did not allocate or retain it. in case, not responsible releasing it. can set ivar nil.


Comments

Popular posts from this blog

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -

Python __call__ special method practical example -