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

address memory leak issue with regards to NSURLSession #6

Merged
merged 1 commit into from
Jun 2, 2017

Conversation

jimmaye
Copy link

@jimmaye jimmaye commented Jun 1, 2017

Hi

I submitted another PR earlier to the Launch Darkly iOS SDK, this is kinda similar to this PR, although I now save a strong reference to the NSURLSession object, and use the ephemeral session configuration, since I assume caching etc. is not really needed for the operations performed.
I've also inserted a cleanup of the session each time open and close is executed to get rid of any leaks possible (they might be small and/or inferior, but our app still get's punished by iOS for them :-) )

For reference, here's the other issue+PR: launchdarkly/ios-client-sdk#97

@arun251
Copy link

arun251 commented Jun 1, 2017

Thanks for the PR @jimmaye . We will review it shortly.

@arun251 arun251 requested a review from danialzahid94 June 1, 2017 20:32
Copy link

@danialzahid94 danialzahid94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@danialzahid94 danialzahid94 merged commit 55a182a into launchdarkly:master Jun 2, 2017
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

Successfully merging this pull request may close these issues.

3 participants