开发者

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

开发者 https://www.devze.com 2023-01-19 23:05 出处:网络
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

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

精彩评论

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