有关使用泄漏仪器和修复的问题
我有这段代码:
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];
其中,TImageView 是一个自定义类
现在,当使用泄漏工具时,例如,一次泄漏,如果我单击扩展详细信息,
我会看到 99.6%内存泄漏是因为这一行:
thumbnailView.urlPath = URLPath;
我没有线索。有什么帮助吗?
I have this piece of code :
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
Now, when using the leaks instrument, for one instance, one leak, if I click on the extended detail,
I see that 99.6% of memory leakage is because of this line:
thumbnailView.urlPath = URLPath;
I have got no clue. Any help ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有两个可能的原因:
There are two possible reasons: