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
Post a Comment