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

javascript - Iterate over array and calculate average values of array-parts -

ASP.NET Javascript: window.open won't work twice -

jquery - Opera does not change the height of the page. Why? -