If you're having a problem, it's not in this code. venueList will retain the object you add to it, and if you remove it later, it will release it, so this method looks cool. Your problem is elsewhere. You might want to post more specifics, such as the error message. I think this method is a red herring.
|