break cycle and clear owner reference on dispose
This commit is contained in:
parent
76f1fc1cb0
commit
d23b5e5e0c
1 changed files with 6 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue