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
fix(ios): explicitly invalidate session after completion #48
Conversation
@janvennemann Inside error section of this function should we add `- (void)URLSession:(nonnull NSURLSession *)session task:(nonnull NSURLSessionTask *)task didCompleteWithError:(nullable NSError *)error
} [self responseFinished]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the issue as mentioned in comment.
@vijaysingh-axway added invalidation to the error handler too! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR passed.
@janvennemann Please update the library in SDK. Thanks! |
Is this included in a preview build? |
@tristankenney Unfortunately, this didn't make it into 8.0.0. It will be included in 8.0.1. |
JIRA: https://jira.appcelerator.org/browse/TIMOB-26811
According to the docs for the delegate property, it holds a strong reference to the object. This creates a retain circle since we set the delegate to the request itself so neither the session nor the request will be properly released, creating a memory leak.