react-native/React
wenzhao.yin 47f834a76d fix RCTMultipartDataTask Memory leaks
Summary:
In the Docs of `NSURLSession` ,

>IMPORTANT

>The session object keeps a strong reference to the delegate until your app exits or explicitly >invalidates the session. If you do not invalidate the session, your app leaks memory until it exits.

The RCTMultipartDataTask will cause memory leaks, it will make `RCTBatchedBridge` and ` RCTMultipartDataTask` will not release.

So call `[session finishTasksAndInvalidate];` at the end of `startTask` function.
Closes https://github.com/facebook/react-native/pull/12673

Reviewed By: shergin

Differential Revision: D4896497

Pulled By: javache

fbshipit-source-id: eb5f8761f67ad33a7de081a68a9a7e1d4329bfc0
2017-04-20 03:45:25 -07:00
..
Base fix RCTMultipartDataTask Memory leaks 2017-04-20 03:45:25 -07:00
CxxBridge More verbose error messages for iOS 2017-04-18 14:19:13 -07:00
CxxModule Add extra guards to DispatchMessageQueueThread 2017-04-11 12:25:39 -07:00
CxxUtils Explicitly cast to (bool) where needed on objc with folly::dynamic 2017-04-18 15:36:20 -07:00
DevSupport Add JSC utility header to RCTBridge 2017-04-07 11:16:59 -07:00
Executors Remove RCTBatchedBridge rule and all uses from the tree 2017-04-19 17:00:43 -07:00
Modules Enable dev menu in tvOS simulator 2017-04-19 15:29:56 -07:00
Profiler Fixing another iOS app extension unsafe API usage in react native 2017-04-06 12:30:55 -07:00
React.xcodeproj Fixing Race condition that happens with _wasBatchActive 2017-04-19 03:00:53 -07:00
ReactCxx.xcodeproj Rename JSCSamplingProfiler to RCTJSCSamplingProfiler 2017-04-18 13:22:01 -07:00
Views `reactRespondsToTouch:` was removed 2017-04-10 12:32:31 -07:00
folly.xcconfig Update Boost dependency to 1.63 on iOS 2017-03-10 05:45:28 -08:00