We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50ecf38 commit e1eb992Copy full SHA for e1eb992
packages/storage/ios/RNFBStorage/RNFBStorageCommon.m
@@ -63,7 +63,7 @@ + (NSString *)mimeTypeForPath:(NSString *)localFilePath {
63
(__bridge CFStringRef) [localFilePath pathExtension],
64
NULL);
65
CFStringRef mimeType = UTTypeCopyPreferredTagWithClass(UTI, kUTTagClassMIMEType);
66
- CFRelease(UTI);
+ if (UTI) { CFRelease(UTI); }
67
68
if (!mimeType) {
69
return @"application/octet-stream";
0 commit comments