Merge pull request #43 from assaqqaf/master

[FIX][IOS] Add check to prevent CFRelease(NULL) crash for mimeType
This commit is contained in:
Bartol Karuza 2019-04-22 20:40:22 +02:00 committed by GitHub
commit 6fbb334b4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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];