Kaydet (Commit) 1c564cb9 authored tarafından Jian Fang Zhang's avatar Jian Fang Zhang

#i120828#, retore some ChartModel::dispose() code to break cyclic reference

Found by: zhangjf 
Patch by: zhangjf
üst fe7e723a
......@@ -565,6 +565,9 @@ void SAL_CALL ChartModel::dispose() throw(uno::RuntimeException)
m_pUndoManager.clear();
// that's important, since the UndoManager implementation delegates its ref counting to ourself.
if( m_xOldModelAgg.is()) // #i120828#, to release cyclic reference to ChartModel object
m_xOldModelAgg->setDelegator( 0 );
m_aControllers.disposeAndClear( lang::EventObject( static_cast< cppu::OWeakObject * >( this )));
m_xCurrentController.clear();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment