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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -