diff options
Diffstat (limited to 'connectivity/source/drivers/calc/CCatalog.cxx')
-rw-r--r-- | connectivity/source/drivers/calc/CCatalog.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/calc/CCatalog.cxx b/connectivity/source/drivers/calc/CCatalog.cxx index 7ac5af5398d4..6853a5f9dbc3 100644 --- a/connectivity/source/drivers/calc/CCatalog.cxx +++ b/connectivity/source/drivers/calc/CCatalog.cxx @@ -53,7 +53,7 @@ void OCalcCatalog::refreshTables() if(m_pTables) m_pTables->reFill(aVector); else - m_pTables = new OCalcTables(m_xMetaData,*this,m_aMutex,aVector); + m_pTables.reset( new OCalcTables(m_xMetaData,*this,m_aMutex,aVector) ); // this avoids that the document will be loaded a 2nd time when one table will be accessed. //if ( m_pTables && m_pTables->hasElements() ) |