diff options
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/inputstream.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/inputstream.cxx b/xmlhelp/source/cxxhelp/provider/inputstream.cxx index fd6a27836e22..31067b4b1ea0 100644 --- a/xmlhelp/source/cxxhelp/provider/inputstream.cxx +++ b/xmlhelp/source/cxxhelp/provider/inputstream.cxx @@ -37,13 +37,12 @@ XInputStream_impl::XInputStream_impl( const OUString& aUncPath ) m_bIsOpen = ( osl::FileBase::E_None == m_aFile.open( osl_File_OpenFlag_Read ) ); } - XInputStream_impl::~XInputStream_impl() { - closeInput(); + if (m_bIsOpen) + m_aFile.close(); } - uno::Any SAL_CALL XInputStream_impl::queryInterface( const uno::Type& rType ) { |