我有这段代码:
TImageView *thumbnailView = [[TImageView alloc] initWithFrame:self.frame];
thumbnailView.delegate = self;
thumbnailView.hidden = NO;
thumbnailView.contentMode = UIViewContentModeScaleAspectFill;
thumbnailView.clipsToBounds = YES;
thumbnailView.urlPath = URLPath;
[self addSubview:thumbnailView];
[thumbnailView release];
where, TImageView is a custom class
现在,当使用泄漏仪器时,如果我点击扩展细节,一次泄漏,
我看到99.6%的内存泄漏是由于这一行:
thumbnailView.urlPath = URLPath;
我不知道。有什么帮助吗?