incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 120828] All ChartModel/ChartView objects are not released
Date Thu, 06 Sep 2012 05:53:02 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=120828

--- Comment #1 from zhang jianfang <zhangjf@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.

Mime
View raw message