나는 누수 도구를 사용하고있다. 그것은 init 메소드에서 일부 누수가 있다고합니다. NSMutableArray에 누출이 있음을 보여줍니다.init에서 일부 누출이 있습니다. 나는 아무도 누출을 볼 수 없다
누출이 보이지 않습니다.
@interface BookSettings : NSObject
@property (nonatomic, retain) NSString *title;
@property (nonatomic, retain) NSMutableArray *authors;
@end
- (id)init
{
self = [super init];
if(self)
{
title = [[NSString stringWithString:@""] retain];
authors = [[NSMutableArray alloc] init];
}
return self;
}
- (void)dealloc
{
[title release];
[authors release];
[super dealloc];
}
일부 라이브러리 (예 : ASIHHTP)를 사용 중이므로 ARC를 지원하지 않습니다. 그래서 ARC를 사용하지 않습니다. – Voloda2
ARC는 파일 단위로 사용할 수 있지만 귀하의 문제를 이해하고 제 3 자 코드는 하나를 다시 보유 할 수 있습니다. – zaph