chart45: #i110849# crash after copying chart
This commit is contained in:
parent
cba8a6f937
commit
39fb1ee566
1 changed files with 4 additions and 0 deletions
|
@ -303,7 +303,9 @@ ChartDataWrapper::ChartDataWrapper( ::boost::shared_ptr< Chart2ModelContact > sp
|
|||
m_spChart2ModelContact( spChart2ModelContact ),
|
||||
m_aEventListenerContainer( m_aMutex )
|
||||
{
|
||||
osl_incrementInterlockedCount( &m_refCount );
|
||||
initDataAccess();
|
||||
osl_decrementInterlockedCount( &m_refCount );
|
||||
}
|
||||
|
||||
ChartDataWrapper::ChartDataWrapper( ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact,
|
||||
|
@ -311,8 +313,10 @@ ChartDataWrapper::ChartDataWrapper( ::boost::shared_ptr< Chart2ModelContact > sp
|
|||
m_spChart2ModelContact( spChart2ModelContact ),
|
||||
m_aEventListenerContainer( m_aMutex )
|
||||
{
|
||||
osl_incrementInterlockedCount( &m_refCount );
|
||||
lcl_AllOperator aOperator( xNewData );
|
||||
applyData( aOperator );
|
||||
osl_decrementInterlockedCount( &m_refCount );
|
||||
}
|
||||
|
||||
ChartDataWrapper::~ChartDataWrapper()
|
||||
|
|
Loading…
Reference in a new issue