【发布时间】:2011-05-13 20:09:12
【问题描述】:
仪器在以下代码中向我显示了模拟器中的泄漏,
UIBarButtonItem *connectButton = [[UIBarButtonItem alloc] initWithTitle:@"Connexion" style:UIBarButtonItemStyleBordered target:self action:@selector(pushViewController)];
[self.navigationItem setLeftBarButtonItem:connectButton animated:animated];
[connectButton release];
你看到任何泄漏吗?谢谢
【问题讨论】:
-
报告什么样的泄漏?
-
这段代码看起来没问题——你确定这是报告内存泄漏的地方吗?
-
泄露对象:_NSCFType。负责图书馆:CoreGraphics。负责框架:CGTypeCreateInstanceWithAllocator
-
Leaks 向您展示了对象被分配的位置,不是它被泄露的位置。
标签: iphone objective-c ios memory-leaks ios-simulator