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

swift - Button on Table View Cell connected to local function -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

c# - ajax - How to receive data both html and json from server? -