diff options
author | Noel Grandin <noel@peralex.com> | 2015-03-23 10:24:57 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-10 13:06:55 +0100 |
commit | 489a4fb3a00cf7e6c32ecfe7e50538d6c8eb075b (patch) | |
tree | 2391f49d8ec5379da7995e3f8a2afc281b6b86ad /canvas | |
parent | 0e491a7a2affbb08071e6378dacc1995cb301655 (diff) |
calling delete on VclPtr
Change-Id: I25346435d2129086281783636624b1bb430d0096
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/vcl/bitmapbackbuffer.cxx | 3 |
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() |