iphone, How can I get rid of this potential leak, caused by using return after UIAlertview?
Heres my analyzer leak...
I need to return and stop execution of the rest of my method, as开发者_如何学Go I'm stopping the user as hes enter some text fields incorrectly.
By line 442 I'm guessing that that is the alert
value that you set after the WarningMessage. Notice that you've not released it. After the show
try:
[alert show];
[alert autorelease];
return;
精彩评论