objective c - How to fix Memory Leak in Custom WifiStatus file in IOS -
please suggest how fix below memory leak.
note: using arc in project. compiled using arc only.
i tried take temporary dict , bool , return variables. still memory leak doesn't fix...
thanks in advance...!
this should it, passes
xcode menu: "product" >> "analyze"
this showing 0 potential or realized memory leaks:
-(bool)iswificonnected { return wifidetails() == nil ? no : yes; } nsdictionary *wifidetails() { cfarrayref interfaces = cncopysupportedinterfaces(); cfdictionaryref captiventwrkdict = cncopycurrentnetworkinfo(cfarraygetvalueatindex(interfaces, 0)); nsdictionary *dict = ( __bridge_transfer nsdictionary*) captiventwrkdict; cfrelease(interfaces); return dict; }
Comments
Post a Comment