diff options
Diffstat (limited to 'sd/source/ui/view/drawview.cxx')
-rw-r--r-- | sd/source/ui/view/drawview.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sd/source/ui/view/drawview.cxx b/sd/source/ui/view/drawview.cxx index 55f8872bfb69..179529c4645b 100644 --- a/sd/source/ui/view/drawview.cxx +++ b/sd/source/ui/view/drawview.cxx @@ -91,7 +91,7 @@ DrawView::DrawView( DrawDocShell* pDocSh, OutputDevice* pOutDev, DrawViewShell* DrawView::~DrawView() { - delete mpVDev; + mpVDev.disposeAndClear(); } /** @@ -459,8 +459,7 @@ void DrawView::CompleteRedraw(OutputDevice* pOutDev, const vcl::Region& rReg, sd { if( mpVDev ) { - delete mpVDev; - mpVDev = NULL; + mpVDev.disposeAndClear(); } bool bStandardPaint = true; |