summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
authorMikhail Voitenko <mav@openoffice.org>2004-10-13 17:03:30 +0000
committerMikhail Voitenko <mav@openoffice.org>2004-10-13 17:03:30 +0000
commit1371624f6838f86c569a734400f3ddf65d189d6e (patch)
tree00897036bb6242b92b27a9c376be93da4a34b0a2 /embeddedobj
parentdcc8a293fc55fc8ff781c3fde0702bd2caee7c2f (diff)
#i35418# let the stream stay alive
Diffstat (limited to 'embeddedobj')
-rw-r--r--embeddedobj/source/commonembedding/persistence.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/embeddedobj/source/commonembedding/persistence.cxx b/embeddedobj/source/commonembedding/persistence.cxx
index 63640689868f..6c5ecd3f0bd2 100644
--- a/embeddedobj/source/commonembedding/persistence.cxx
+++ b/embeddedobj/source/commonembedding/persistence.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: persistence.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: mav $ $Date: 2004-10-08 11:15:44 $
+ * last change: $Author: mav $ $Date: 2004-10-13 18:03:30 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -440,9 +440,11 @@ uno::Reference< util::XCloseable > OCommonEmbeddedObject::LoadDocumentFromStorag
aArgs[2].Value <<= m_bReadOnly;
aArgs[3].Name = ::rtl::OUString::createFromAscii( "FilterName" );
aArgs[3].Value <<= aFilterName;
+
+ uno::Reference< io::XInputStream > xTempInpStream;
if ( !xDoc.is() )
{
- uno::Reference< io::XInputStream > xTempInpStream = createTempInpStreamFromStor( xStorage, m_xFactory );
+ xTempInpStream = createTempInpStreamFromStor( xStorage, m_xFactory );
if ( !xTempInpStream.is() )
throw uno::RuntimeException();