美文网首页
Potential leak of an object stor

Potential leak of an object stor

作者: 提灯走夜路 | 来源:发表于2019-03-29 14:51 被阅读0次

SCNetworkReachabilityRef reachability = SCNetworkReachabilityCreateWithAddress(kCFAllocatorDefault, hostAddress);

Reachability* returnValue =NULL;

if(reachability !=NULL)

{

returnValue = [[selfalloc]init];

if(returnValue !=NULL)

{

returnValue->_reachabilityRef= reachability;

}

        else{

            CFRelease(reachability);

        }

}

returnreturnValue;

https://developer.apple.com/library/archive/samplecode/Reachability/Introduction/Intro.html

相关文章

网友评论

      本文标题:Potential leak of an object stor

      本文链接:https://www.haomeiwen.com/subject/zhuwdttx.html