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

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -