【发布时间】:2011-04-24 16:28:07
【问题描述】:
您好,我在 Instruments 中遇到以下代码行的内存泄漏。
NSArray *itemsList=[[NSArray alloc] initWithObjects:@"Love",
@"Hate",@"Happy",@"Sad",
@"Desire",@"Anger",@"Hope",@"Fear",@"Silly",nil];
我正在使用以下代码: arrayList 也在 dealloc 块中释放。
NSArray *itemsList=[[NSArray alloc] initWithObjects:@"Love",@"Hate",
@"Happy",@"Sad",@"Desire",
@"Anger",@"Hope",@"Fear",@"Silly",nil];
self.arrayList=itemsList;
[itemsList release];
【问题讨论】:
标签: iphone cocoa memory-management memory-leaks nsarray