break cycle and clear owner reference on dispose

This commit is contained in:
Caolán McNamara 2011-01-21 10:50:49 +00:00
parent 76f1fc1cb0
commit d23b5e5e0c

View file

@ -752,6 +752,8 @@ void ImageManagerImpl::dispose()
}
delete m_pDefaultImageList;
m_pDefaultImageList = 0;
m_xOwner.clear();
}
}
@ -1455,6 +1457,10 @@ void ImageManagerImpl::implts_notifyContainerListener( const ConfigurationEvent&
void ImageManagerImpl::clear()
{
ResetableGuard aGuard( m_aLock );
if (!m_pUserImageList)
return;
for ( sal_Int32 n = 0; n < ImageType_COUNT; n++ )
{
delete m_pUserImageList[n];