summaryrefslogtreecommitdiff
path: root/canvas/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-23 10:24:57 +0200
committerMichael Meeks <michael.meeks@collabora.com>2015-04-10 13:06:55 +0100
commit489a4fb3a00cf7e6c32ecfe7e50538d6c8eb075b (patch)
tree2391f49d8ec5379da7995e3f8a2afc281b6b86ad /canvas/source
parent0e491a7a2affbb08071e6378dacc1995cb301655 (diff)
calling delete on VclPtr
Change-Id: I25346435d2129086281783636624b1bb430d0096
Diffstat (limited to 'canvas/source')
-rw-r--r--canvas/source/vcl/bitmapbackbuffer.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/canvas/source/vcl/bitmapbackbuffer.cxx b/canvas/source/vcl/bitmapbackbuffer.cxx
index d140ea002a10..1bbf73c5b224 100644
--- a/canvas/source/vcl/bitmapbackbuffer.cxx
+++ b/canvas/source/vcl/bitmapbackbuffer.cxx
@@ -45,8 +45,7 @@ namespace vclcanvas
// are supposed to be called with already locked solar mutex)
SolarMutexGuard aGuard;
- if( mpVDev )
- delete mpVDev;
+ mpVDev.disposeAndClear();
}
OutputDevice& BitmapBackBuffer::getOutDev()