summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/doc/docfile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index ec0ebbecaf9e..3eaf8e355415 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -2785,7 +2785,7 @@ void SfxMedium::CompleteReOpen()
if ( pImp->pTempFile )
pImp->m_aName = pImp->pTempFile->GetFileName();
}
- else
+ else if (pTmpFile)
{
pTmpFile->EnableKillingFile( true );
delete pTmpFile;