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;
#ifdef SB_SANDBOX
if ([destination respondsToSelector:@selector(startAccessingSecurityScopedResource)])
[destination startAccessingSecurityScopedResource];
[self.destURL startAccessingSecurityScopedResource];
#endif
// The file has been added directly to the queue
@@ -425,8 +424,7 @@ bail:
self.fileURL = filePathURL;
#ifdef SB_SANDBOX
if ([destination respondsToSelector:@selector(stopAccessingSecurityScopedResource)])
[destination stopAccessingSecurityScopedResource];
[self.destURL stopAccessingSecurityScopedResource];
#endif
return noErr;