NSURLSession maintains a strong reference to its delegate and requires explicit invalidation to clean up its state, otherwise it leaks memory. This change introduces an proxy delegate for the underlying NSURLSession. OWSURLSession retains the NSURLSession, NSURLSession retains the proxy delegate. The proxy delegate will retain the OWSURLSession and create a retain cycle only while there are outstanding URLSessionTasks. Once all tasks have been resolved, the cycle is broken and everything will be dealloced (assuming no external references to the OWSURLSession still exist). |
||
|---|---|---|
| .. | ||
| protobuf | ||
| Resources | ||
| src | ||
| tests | ||
| Utilities | ||
| .clang-format | ||
| .gitignore | ||
| .travis.yml | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| README.md | ||
SignalServiceKit
SignalServiceKit is an Objective-C library for communicating with the Signal messaging service for iOS & OS X
To use SignalServiceKit via CocoaPods add the following to your Podfile
pod 'SignalServiceKit', git: 'https://github.com/signalapp/Signal-iOS.git'