What is the result of the following?
NSString *myStr = [[[NSString alloc] initWithString:@"Hello World."] autorelease];
myStr = [NSString stringWithString:@"Hello Again."];
Does myStr
get correctly released or does this crash, since we would call autorelease
on myStr
which is now set to a string that is already autoreleased?