diff options
author | Dirk Voelzke <dv@openoffice.org> | 2010-08-18 14:31:49 +0200 |
---|---|---|
committer | Dirk Voelzke <dv@openoffice.org> | 2010-08-18 14:31:49 +0200 |
commit | 668f998c88cc5e3a344dfc0693c0694d5121296a (patch) | |
tree | 3092d3e205ce446705a9ea5afbfcabec3a82ec9e /shell | |
parent | dc50b041cf1c549bb4ec9cde37da1ca5e61cdc34 (diff) |
dv20:#i80759# Fixed a memory leak
Diffstat (limited to 'shell')
-rwxr-xr-x[-rw-r--r--] | shell/source/win32/shlxthandler/prophdl/propertyhdl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/source/win32/shlxthandler/prophdl/propertyhdl.cxx b/shell/source/win32/shlxthandler/prophdl/propertyhdl.cxx index 3f495a7aa53d..13d1a57fefd8 100644..100755 --- a/shell/source/win32/shlxthandler/prophdl/propertyhdl.cxx +++ b/shell/source/win32/shlxthandler/prophdl/propertyhdl.cxx @@ -237,14 +237,14 @@ HRESULT STDMETHODCALLTYPE CPropertyHdl::Initialize( IStream *pStream, DWORD grfM try { pMetaInfoReader = new CMetaInfoReader( (void*)pStream, &z_filefunc ); + LoadProperties( pMetaInfoReader ); + delete pMetaInfoReader; } catch (const std::exception& e) { OutputDebugStringFormat( "CPropertyHdl::Initialize: Caught exception [%s]", e.what() ); return E_FAIL; } - - LoadProperties( pMetaInfoReader ); /* // load extended properties and search content _LoadExtendedProperties(); |