summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/wrapper/wrapper.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sdext/source/pdfimport/wrapper/wrapper.cxx b/sdext/source/pdfimport/wrapper/wrapper.cxx
index 2adae2043bad..98c39e2e62bd 100644
--- a/sdext/source/pdfimport/wrapper/wrapper.cxx
+++ b/sdext/source/pdfimport/wrapper/wrapper.cxx
@@ -1083,14 +1083,16 @@ bool xpdf_ImportFromFile( const OUString& rURL,
oslFileHandle pIn = NULL;
oslFileHandle pOut = NULL;
oslFileHandle pErr = NULL;
+ oslSecurity pSecurity = osl_getCurrentSecurity ();
const oslProcessError eErr =
osl_executeProcess_WithRedirectedIO(converterURL.pData,
args,
nArgs,
osl_Process_SEARCHPATH|osl_Process_HIDDEN,
- osl_getCurrentSecurity(),
+ pSecurity,
0, ppEnv, nEnv,
&aProcess, &pIn, &pOut, &pErr);
+ osl_freeSecurityHandle(pSecurity);
bool bRet=true;
try