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 | |
parent | ww8: warning C4701: potentially uninitialized local variable (diff) | |
download | core-15510bf9ee26ed01c53b32beb2aea97ffa3e62fc.tar.gz core-15510bf9ee26ed01c53b32beb2aea97ffa3e62fc.zip |
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.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; |