diff --git a/ios/RNCAssetsLibraryRequestHandler.m b/ios/RNCAssetsLibraryRequestHandler.m index 9b2ff871a..ff083e668 100644 --- a/ios/RNCAssetsLibraryRequestHandler.m +++ b/ios/RNCAssetsLibraryRequestHandler.m @@ -143,7 +143,7 @@ RCT_EXPORT_MODULE() MIMEType:(__bridge NSString *)(mimeType) expectedContentLength:length textEncodingName:nil]; - CFRelease(mimeType); + if (mimeType) CFRelease(mimeType); [delegate URLRequest:cancellationBlock didReceiveResponse:response];