diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-10-14 22:35:38 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-10-15 00:04:32 +0200 |
commit | 15510bf9ee26ed01c53b32beb2aea97ffa3e62fc (patch) | |
tree | 99c67b0f0d36cb0d9c1e333a1676a735df02396d /sot/source | |
parent | dd6d9fd5db0a02d5fd4b63a07408921266a38989 (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/source')
-rw-r--r-- | sot/source/sdstor/stgstrms.cxx | 2 |
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; |