【发布时间】:2010-09-14 18:16:42
【问题描述】:
我有一个我分配和启动的翻转视图类。但是,当我释放它时,应用程序崩溃了。如果我不发布它,该应用程序可以正常工作,看起来如此。我发布它时收到的错误消息是:
Malloc - 对象错误:被释放的对象指针未被分配。
如果您能帮助我,我将不胜感激。
- (IBAction)showInfo {
FlippedProduceView *flippedView = [[FlippedProduceView alloc]initWithIndexPath:index];
flippedView.flipDelegate = self;
flippedView.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:flippedView animated:YES];
//[flippedView release]; //******** Maybe A Memory Leak *********\\
}
【问题讨论】:
标签: iphone memory-leaks memory-management malloc