We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Attachment: Download
iOS 11.2, simulator and iPhone X
Xcode 9.2 (9C40b)
macOS 10.12.6 (16G1114)
md5: 2870ec4b8f985c3e6bf0c0086b771c40
Issue Description:
When a 10mb file is downloaded using URLSession and written to disk and saved to NSCache the memory goes up by 20mb.
Using the following causes the leak:
do { try data.write(to: fileUrl) } catch { print(error) }
However doing this does not cause the leak:
(data as NSData).write(to: fileUrl, atomically: true)
It happens every time the button is pressed in the attached example project
The text was updated successfully, but these errors were encountered:
@swift-ci create
Sorry, something went wrong.
No branches or pull requests
Attachment: Download
Environment
iOS 11.2, simulator and iPhone X
Xcode 9.2 (9C40b)
macOS 10.12.6 (16G1114)
Additional Detail from JIRA
md5: 2870ec4b8f985c3e6bf0c0086b771c40
Issue Description:
When a 10mb file is downloaded using URLSession and written to disk and saved to NSCache the memory goes up by 20mb.
Using the following causes the leak:
However doing this does not cause the leak:
It happens every time the button is pressed in the attached example project
The text was updated successfully, but these errors were encountered: