From b1ceb75340066218873dfbc6f423f59c480b815e Mon Sep 17 00:00:00 2001 From: Jason Waldrip Date: Wed, 26 Jun 2019 02:38:30 -0600 Subject: [PATCH] fixes #42, again (#66) --- ios/RNCAssetsLibraryRequestHandler.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];