Add check to prevent CFRelease(NULL) crash for mimeType
This commit is contained in:
parent
45b89479cf
commit
4d879e4cb1
|
@ -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