I have created a NSTimer and call it every 15 seconds. Method that I call makes web service call. In this method I write this code:
GetData *ws = [[GetData alloc]init];
[ws GetSomeData:156];
[ws release];
Here I make instance to a class that call web service method, make a call and release object. Is this approach fine or bad?
No leak here, but if you want to do something with
ws, don’treleaseit,autoreleaseit instead.