Revision: 13502
http://sourceforge.net/p/skim-app/code/13502
Author: hofman
Date: 2023-06-23 18:07:55 +0000 (Fri, 23 Jun 2023)
Log Message:
-----------
close file descriptor immediately, we don't need to acces it directly
Modified Paths:
--------------
trunk/QuickLook-Skim/SKQLConverter.m
Modified: trunk/QuickLook-Skim/SKQLConverter.m
===================================================================
--- trunk/QuickLook-Skim/SKQLConverter.m 2023-06-23 16:53:20 UTC (rev
13501)
+++ trunk/QuickLook-Skim/SKQLConverter.m 2023-06-23 18:07:55 UTC (rev
13502)
@@ -295,6 +295,9 @@
int fd = mkstemp(tempName);
assert(tempName);
+ if (fd != -1)
+ close(fd);
+
NSString *outputPath = [fm stringWithFileSystemRepresentation:tempName
length:strlen(tempName)];
free(tempName);
@@ -320,7 +323,6 @@
int status = -1;
@try {
[task launch];
- close(fd);
[task waitUntilExit];
status = [task terminationStatus];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit