summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/docfile.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2007-07-18 08:01:44 +0000
committerOliver Bolte <obo@openoffice.org>2007-07-18 08:01:44 +0000
commit537027d2b246ef59066c2c978f985ceef3fee219 (patch)
treeab6dc0b754b8ced505e2a470a4cc0e5147435dc4 /sfx2/source/doc/docfile.cxx
parenta65bdb2f5b706bfa60848d6af85dea039ea1ca61 (diff)
INTEGRATION: CWS fwk67 (1.190.8); FILE MERGED
2007/07/04 08:54:57 cd 1.190.8.1: #i79140# Fixed some memory leaks
Diffstat (limited to 'sfx2/source/doc/docfile.cxx')
-rw-r--r--sfx2/source/doc/docfile.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index 6fe862cfa6cc..adc6a94c13d8 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: docfile.cxx,v $
*
- * $Revision: 1.192 $
+ * $Revision: 1.193 $
*
- * last change: $Author: obo $ $Date: 2007-07-17 13:42:41 $
+ * last change: $Author: obo $ $Date: 2007-07-18 09:01:44 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -3382,6 +3382,9 @@ void SfxMedium::TryToSwitchToRepairedTemp()
}
else
SetError( ERRCODE_IO_CANTWRITE );
+
+ if (pImp->pTempFile != pTmpFile)
+ delete pTmpFile;
}
else
SetError( ERRCODE_IO_CANTREAD );