I saw the following piece of code
UIAlertView *alert =
[[UIAlertView alloc] initWithTitle :@”Hello World!”
message:@”iPhone, here I come!”
delegate :self
cancelButtonTitle:@”OK”
otherButtonTitles:nil ];
[alert show];
[alert release];
Do I need to call release every time, or is there a way to automatically manage memory like garbage collection in java or .NET?