Fix some sandbox issues.

This commit is contained in:
Damiano Galassi committed 2018-06-25 11:29:58 +02:00
1 parent 1899e78433
commit 9f2fc2a9a6
1 file changed
+2 -4
+2 -4
View File
@@ -342,8 +342,7 @@
BOOL noErr = YES; BOOL noErr = YES;
#ifdef SB_SANDBOX #ifdef SB_SANDBOX
if ([destination respondsToSelector:@selector(startAccessingSecurityScopedResource)]) [self.destURL startAccessingSecurityScopedResource];
[destination startAccessingSecurityScopedResource];
#endif #endif
// The file has been added directly to the queue // The file has been added directly to the queue
@@ -425,8 +424,7 @@ bail:
self.fileURL = filePathURL; self.fileURL = filePathURL;
#ifdef SB_SANDBOX #ifdef SB_SANDBOX
if ([destination respondsToSelector:@selector(stopAccessingSecurityScopedResource)]) [self.destURL stopAccessingSecurityScopedResource];
[destination stopAccessingSecurityScopedResource];
#endif #endif
return noErr; return noErr;