iphone - Will this leak memory -
i have created nstimer , call every 15 seconds. method call makes web service call. in method write code:
getdata *ws = [[getdata alloc]init]; [ws getsomedata:156]; [ws release];
here make instance class call web service method, make call , release object. approach fine or bad?
no leak here, if want ws
, don't release
it, autorelease
instead.
Comments
Post a Comment