objective c - How to fix Memory Leak in Custom WifiStatus file in IOS -


please suggest how fix below memory leak.

wifistatus.m file

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...!

status

wifi connection

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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -