diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-05-18 15:39:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-05-20 15:21:50 +0100 |
commit | 82cb48a7f71b2591dbfa2079ec3ca859fbbe8c47 (patch) | |
tree | 4f2d80cd0d5465191bb45bc9bae9f718d64f517d | |
parent | 43ad627cc85a6a72e2fd5950cc2125db8c226727 (diff) |
valgrind: break circular dependency leaks
-rw-r--r-- | chart2/source/model/main/ChartModel.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx index 325dd5dc9..66f07c78d 100644 --- a/chart2/source/model/main/ChartModel.cxx +++ b/chart2/source/model/main/ChartModel.cxx @@ -572,6 +572,10 @@ void SAL_CALL ChartModel::dispose() throw(uno::RuntimeException) m_xCurrentController.clear(); DisposeHelper::DisposeAndClear( m_xRangeHighlighter ); + + if( m_xOldModelAgg.is()) + m_xOldModelAgg->setDelegator( NULL ); + OSL_TRACE( "ChartModel: dispose() called" ); } |