diff options
-rw-r--r-- | sfx2/source/doc/sfxbasemodel.cxx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index 3ad6fc982114..b50afe1ea866 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -523,18 +523,15 @@ SfxBaseModel::SfxBaseModel( SfxObjectShell *pObjectShell ) } } - // destructor - - SfxBaseModel::~SfxBaseModel() { + //In SvxDrawingLayerImport when !xTargetDocument the fallback SvxUnoDrawingModel created there + //never gets disposed called on it, so m_pData leaks. + delete m_pData, m_pData = 0; } - // XInterface - - Any SAL_CALL SfxBaseModel::queryInterface( const uno::Type& rType ) throw( RuntimeException, std::exception ) { if ( ( !m_bSupportEmbeddedScripts && rType.equals( cppu::UnoType<document::XEmbeddedScripts>::get() ) ) @@ -545,10 +542,7 @@ Any SAL_CALL SfxBaseModel::queryInterface( const uno::Type& rType ) throw( Runti return SfxBaseModel_Base::queryInterface( rType ); } - // XInterface - - void SAL_CALL SfxBaseModel::acquire() throw( ) { // Attention: |