mirror of
https://github.com/status-im/react-native-camera-roll.git
synced 2026-08-27 11:21:08 +00:00
Merge pull request #43 from assaqqaf/master
[FIX][IOS] Add check to prevent CFRelease(NULL) crash for mimeType
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user