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

Leaks #1

Closed
LuzhiyiMango opened this issue Jan 19, 2022 · 0 comments
Closed

Leaks #1

LuzhiyiMango opened this issue Jan 19, 2022 · 0 comments

Comments

@LuzhiyiMango
Copy link

  1. KJNetworkBasePlugin->@Property (nonatomic, strong, readonly) KJNetworkingRequest *request
    KJNetworkingRequest->@Property (nonatomic, strong) NSArray<id>*plugins;
    循环引用所有reqest response plugins 都释放不了

2.AF中

  • (NSURLSession *)session {
    @synchronized (self) {
    if (!_session) {
    _session = [NSURLSession sessionWithConfiguration:self.sessionConfiguration delegate:self delegateQueue:self.operationQueue];
    }
    }
    return _session;
    }
    delegate:self 代理为强引用,这个框架不做单例每次创建session 所有session都释放不了 没有任何地方发现手动掉用finishTasksAndInvalidate或者invalidateAndCancel。
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