diff options
author | Mathias Bauer <mba@openoffice.org> | 2001-10-02 06:31:01 +0000 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2001-10-02 06:31:01 +0000 |
commit | a10289fb4c7ace6ec0963323edee1bd22d766cd7 (patch) | |
tree | 2ee80141f1c8f471a22ec5aaed18011cffb79414 | |
parent | 25cd714c19633cfdd502559353c3aa665a4e9970 (diff) |
#92449#: DocShells without Medium are possible
-rw-r--r-- | sfx2/source/doc/objxtor.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx index 1b3c0463ac07..a721cfe49273 100644 --- a/sfx2/source/doc/objxtor.cxx +++ b/sfx2/source/doc/objxtor.cxx @@ -2,9 +2,9 @@ * * $RCSfile: objxtor.cxx,v $ * - * $Revision: 1.27 $ + * $Revision: 1.28 $ * - * last change: $Author: os $ $Date: 2001-09-27 13:13:37 $ + * last change: $Author: mba $ $Date: 2001-10-02 07:31:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -256,7 +256,10 @@ SfxObjectShell::~SfxObjectShell() if ( pImp->xModel.is() ) pImp->xModel->dispose(); - String aPhysName = pMedium->GetPhysicalName(); + String aPhysName; + if ( pMedium ) + aPhysName = pMedium->GetPhysicalName(); + DELETEX(pImp->pEventConfig); DELETEX(pImp->pImageManager); DELETEX(pImp->pTbxConfig); @@ -283,7 +286,7 @@ SfxObjectShell::~SfxObjectShell() if ( pImp->xModel.is() ) pImp->xModel = ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > (); - if ( pMedium->IsTemporary() ) + if ( pMedium && pMedium->IsTemporary() ) HandsOff(); DELETEX( pMedium ); |