Merge pull request #43 from assaqqaf/master
[FIX][IOS] Add check to prevent CFRelease(NULL) crash for mimeType
This commit is contained in:
commit
6fbb334b4e
|
@ -101,7 +101,7 @@ RCT_EXPORT_MODULE()
|
|||
MIMEType:(__bridge NSString *)(mimeType)
|
||||
expectedContentLength:length
|
||||
textEncodingName:nil];
|
||||
CFRelease(mimeType);
|
||||
if(mimeType) CFRelease(mimeType);
|
||||
|
||||
[delegate URLRequest:cancellationBlock didReceiveResponse:response];
|
||||
|
||||
|
|
Loading…
Reference in New Issue