summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-10-14 22:35:38 +0200
committerMichael Stahl <mstahl@redhat.com>2014-10-15 00:04:32 +0200
commit15510bf9ee26ed01c53b32beb2aea97ffa3e62fc (patch)
tree99c67b0f0d36cb0d9c1e333a1676a735df02396d /sot
parentdd6d9fd5db0a02d5fd4b63a07408921266a38989 (diff)
sot: stop leaking temp files from StgTmpStrm
The problem is that "aName" is stored as a file path, but osl_removeFile only works with URLs. Change-Id: I6929efc89a9e1a2292f038482b88d38946e6e4e8
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/stgstrms.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx
index f2450c944b4e..5b5e5c3efdf5 100644
--- a/sot/source/sdstor/stgstrms.cxx
+++ b/sot/source/sdstor/stgstrms.cxx
@@ -1192,7 +1192,7 @@ void StgTmpStrm::SetSize(sal_uInt64 n)
{
if( n > THRESHOLD )
{
- aName = utl::TempFile::CreateTempName();
+ aName = utl::TempFile(0, false).GetURL();
SvFileStream* s = new SvFileStream( aName, STREAM_READWRITE );
sal_uLong nCur = Tell();
sal_uLong i = nEndOfData;