开发者

iphone, How can I get rid of this potential leak, caused by using return after UIAlertview?

Heres my analyzer leak...

iphone, How can I get rid of this potential leak, caused by using return after UIAlertview?

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;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜