I have below code in a IBAction linked to a UIButton to change the background image on Button Click.
UIImage *imageGreen=[UIImage imageNamed:@"bgGreen.png"];
[clickButton setBackgroundImage:imageGreen forState:UIControlStateNormal];
[imageGreen release];
after clicking the button three times it crashes the app in iPhone Simulator 4.0. I am alreading releasing the imageGreen object, what else can i do to prevent this.