You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2012/09/06 07:53:02 UTC
[Bug 120828] All ChartModel/ChartView objects are not released
https://issues.apache.org/ooo/show_bug.cgi?id=120828
--- Comment #1 from zhang jianfang <zh...@apache.org> ---
The root cause is in ChartModel ctor,
it calls,
m_xOldModelAgg.set(
m_xContext->getServiceManager()->createInstanceWithContext(
CHART_CHARTAPIWRAPPER_SERVICE_NAME,
m_xContext ), uno::UNO_QUERY_THROW );
m_xOldModelAgg->setDelegator( *this );
Then xOldModelAgg has a cycle reference back to ChartModel object itself.
While in hg changeset 274456, it removes below code from ChartModel::Dispose()
if( m_xOldModelAgg.is())
{
m_xOldModelAgg->setDelegator( 0 );
m_xOldModelAgg.clear();
}
So it never has a chance to reset the cyclic reference.
--
You are receiving this mail because:
You are the assignee for the bug.