Kaydet (Commit) 15510bf9 authored tarafından Michael Stahl's avatar Michael Stahl

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
üst dd6d9fd5
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment