我有一些无弧项目的代码
@interface TRSSImageDownloader()
@property (nonatomic, retain) NSMutableData *activeDownloadData;
@end
@implementation TRSSImageDownloader
@synthesize activeDownloadData = _activeDownloadData;
-(id)init {
self = [super init];
if (self) {
_activeDownloadData = [NSMutableData new];
}
return self;
}
-(void)dealloc {
[_activeDownloadData release];
[super dealloc];
}
它正在工作,但是当我通过“配置文件”->“泄漏”对其进行测试时,它显示内存泄漏activeDownloadData