UIImage imageNamed not autoreleasing correctly
- by MrHen
For some reason, the retain/release behavior in the following code has me completely baffled.
selectedImage = [UIImage imageNamed:@"icon_72.png"];
[selectedImage release];
This should break but does not. Why? I thought imageNamed autoreleased itself which means the release here is redundant and should break when the autorelease occurs.
Here are…