diff options
Diffstat (limited to 'sd/source/ui/app/sdxfer.cxx')
-rw-r--r-- | sd/source/ui/app/sdxfer.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/app/sdxfer.cxx b/sd/source/ui/app/sdxfer.cxx index 283544f8aa99..ed424d464275 100644 --- a/sd/source/ui/app/sdxfer.cxx +++ b/sd/source/ui/app/sdxfer.cxx @@ -141,7 +141,7 @@ SdTransferable::~SdTransferable() delete mpBookmark; delete mpImageMap; - delete mpVDev; + mpVDev.disposeAndClear(); delete mpObjDesc; //call explicitly at end of dtor to be covered by above SolarMutex @@ -262,7 +262,7 @@ void SdTransferable::CreateData() if( 1 == pPage->GetObjCount() ) CreateObjectReplacement( pPage->GetObj( 0 ) ); - mpVDev = new VirtualDevice( *Application::GetDefaultDevice() ); + mpVDev = VclPtr<VirtualDevice>::Create( *Application::GetDefaultDevice() ); mpVDev->SetMapMode( MapMode( mpSdDrawDocumentIntern->GetScaleUnit(), Point(), mpSdDrawDocumentIntern->GetScaleFraction(), mpSdDrawDocumentIntern->GetScaleFraction() ) ); mpSdViewIntern = new ::sd::View( *mpSdDrawDocumentIntern, mpVDev ); mpSdViewIntern->EndListening(*mpSdDrawDocumentIntern ); |