Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在我项目中使用过程中,出现了内存泄漏的现象 #36

Open
lwq1365102044 opened this issue Mar 20, 2018 · 1 comment
Open

Comments

@lwq1365102044
Copy link

泄漏地方:
HYBLoopScrollView类中的 ,configTimer方法中的

CFRunLoopTimerRef timer = CFRunLoopTimerCreateWithHandler(kCFAllocatorDefault, CFAbsoluteTimeGetCurrent() + _timeInterval, _timeInterval, 0, 0, ^(CFRunLoopTimerRef timer) {
[weakSelf autoScroll];
});

self.timer = timer;
CFRunLoopAddTimer(CFRunLoopGetCurrent(), timer, kCFRunLoopCommonModes);

请作者有空看看

@MQL9011
Copy link

MQL9011 commented Apr 11, 2018

好吧,并没有内存泄漏,而是因为我用了个单例viewModel去持有了轮播图导致没法释放...我的锅,错怪作者了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants