diff options
author | Oliver Bolte <obo@openoffice.org> | 2006-10-13 08:43:16 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2006-10-13 08:43:16 +0000 |
commit | 58a31729d71bcf713dec2e543734736da3763f92 (patch) | |
tree | 6e496d8a2526aa4e3ac078ba11ba3e4eb8e77e03 /framework/source/uiconfiguration/moduleimagemanager.cxx | |
parent | 285c57d799650d02ba55cb90a18d6bbfd217aa83 (diff) |
INTEGRATION: CWS fwk48 (1.13.56); FILE MERGED
2006/09/14 08:04:19 cd 1.13.56.1: #i68977# Free image list resources in dispose
Diffstat (limited to 'framework/source/uiconfiguration/moduleimagemanager.cxx')
-rw-r--r-- | framework/source/uiconfiguration/moduleimagemanager.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/framework/source/uiconfiguration/moduleimagemanager.cxx b/framework/source/uiconfiguration/moduleimagemanager.cxx index 2c9cc12bf1..be7032e3ef 100644 --- a/framework/source/uiconfiguration/moduleimagemanager.cxx +++ b/framework/source/uiconfiguration/moduleimagemanager.cxx @@ -4,9 +4,9 @@ * * $RCSfile: moduleimagemanager.cxx,v $ * - * $Revision: 1.14 $ + * $Revision: 1.15 $ * - * last change: $Author: obo $ $Date: 2006-09-16 14:15:47 $ + * last change: $Author: obo $ $Date: 2006-10-13 09:43:16 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -763,6 +763,15 @@ void SAL_CALL ModuleImageManager::dispose() throw (::com::sun::star::uno::Runtim m_bConfigRead = false; m_bModified = false; m_bDisposed = true; + + // delete user and default image list on dispose + for ( sal_Int32 n=0; n < ImageType_COUNT; n++ ) + { + delete m_pUserImageList[n]; + m_pUserImageList[n] = 0; + } + delete m_pDefaultImageList; + m_pDefaultImageList = 0; } } |