diff options
Diffstat (limited to 'sc/source/ui/docshell/sizedev.cxx')
-rw-r--r-- | sc/source/ui/docshell/sizedev.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/sizedev.cxx b/sc/source/ui/docshell/sizedev.cxx index e0ff33c205c1..744266efe4f5 100644 --- a/sc/source/ui/docshell/sizedev.cxx +++ b/sc/source/ui/docshell/sizedev.cxx @@ -55,7 +55,7 @@ ScSizeDeviceProvider::ScSizeDeviceProvider( ScDocShell* pDocSh ) ScSizeDeviceProvider::~ScSizeDeviceProvider() { if (bOwner) - delete pDevice; + pDevice.disposeAndClear(); else pDevice->SetMapMode( aOldMapMode ); } |