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

actionscript 3 - TweenLite does not work with object -

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

c# - Global Variables vs. ASP.NET Session State -