私は機器のリークツールを使用しています。私は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はファイル単位で使用できますが、私はあなたの問題を理解しています。 – zaph