summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2007-11-26 12:48:34 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2007-11-26 12:48:34 +0000
commit57312995aeec7aebd5a55970c33e1ceb8d947114 (patch)
tree62ae98414cd981dc44ed48dbe69e743806d1c818 /sot
parent9d81398a9fe570717fd6783cfe933930b129d069 (diff)
INTEGRATION: CWS fwk72 (1.48.4); FILE MERGED
2007/08/08 10:28:42 mav 1.48.4.1: #i80457# introduce missing delete
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/storage.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx
index 46ba15fa4f15..bc0623076db4 100644
--- a/sot/source/sdstor/storage.cxx
+++ b/sot/source/sdstor/storage.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: storage.cxx,v $
*
- * $Revision: 1.48 $
+ * $Revision: 1.49 $
*
- * last change: $Author: hr $ $Date: 2007-06-27 22:49:38 $
+ * last change: $Author: ihi $ $Date: 2007-11-26 13:48:34 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -876,6 +876,7 @@ uno::Reference< embed::XStorage > SotStorage::GetUNOAPIDuplicate( const String&
UNOStorageHolder* pHolder =
new UNOStorageHolder( *this, *pChildStorage, xDuplStorage, pTempFile );
pHolder->acquire();
+ pTempFile = NULL;
pUNOStorageHolderList->push_back( pHolder );
xResult = xDuplStorage;
}
@@ -888,6 +889,9 @@ uno::Reference< embed::XStorage > SotStorage::GetUNOAPIDuplicate( const String&
}
}
}
+
+ if ( pTempFile != NULL )
+ delete pTempFile;
}
else
SetError( pChildStorage->GetError() );