Fixed retain cycle in RCTFBHTTPRequestHandler

Summary: Following common ObjC pattern, we have to store delegates as weak pointers.

Reviewed By: mmmulani

Differential Revision: D6558886

fbshipit-source-id: 11a710a7e9e17d7c6a78ae46b53b043f44ccf8e5
This commit is contained in:
Valentin Shergin 2017-12-13 15:46:11 -08:00 committed by Facebook Github Bot
parent 71751e9cc7
commit 85503a0612
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@
* itself. This will be used later to refer to the request in callbacks. The
* `sendRequest:withDelegate:` method *must* return before calling any of the
* delegate methods, or the delegate won't recognize the token.
* Following common Objective-C pattern, `delegate` will not be retained.
*/
- (id)sendRequest:(NSURLRequest *)request
withDelegate:(id<RCTURLRequestDelegate>)delegate;