diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-05-26 16:02:50 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-05-26 17:54:27 +0100 |
commit | f849d96463d967214bc063f6de912a082272c395 (patch) | |
tree | 998470859b5f700db40084e89a257ec8a8b78999 /vcl/source/gdi | |
parent | 2a6aa95a7af11eb091dfa9494cd810998b2e324d (diff) |
tdf#91416 - fix some incorrectly allocated VirtualDevices.
Change-Id: I9ebed313827986473c60e77b7e218b4c1b2487fe
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r-- | vcl/source/gdi/impanmvw.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/gdi/impanmvw.cxx b/vcl/source/gdi/impanmvw.cxx index b225280a6102..9d7cea0b529a 100644 --- a/vcl/source/gdi/impanmvw.cxx +++ b/vcl/source/gdi/impanmvw.cxx @@ -33,8 +33,8 @@ ImplAnimView::ImplAnimView( Animation* pParent, OutputDevice* pOut, maSz ( rSz ), maSzPix ( mpOut->LogicToPixel( maSz ) ), maClip ( mpOut->GetClipRegion() ), - mpBackground ( new VirtualDevice ), - mpRestore ( new VirtualDevice ), + mpBackground ( VclPtr<VirtualDevice>::Create() ), + mpRestore ( VclPtr<VirtualDevice>::Create() ), meLastDisposal ( DISPOSE_BACK ), mbPause ( false ), mbMarked ( false ), @@ -217,7 +217,7 @@ void ImplAnimView::draw( sal_uLong nPos, VirtualDevice* pVDev ) // get output device if( !pVDev ) { - pDev = new VirtualDevice; + pDev = VclPtr<VirtualDevice>::Create(); pDev->SetOutputSizePixel( maSzPix, false ); pDev->DrawOutDev( Point(), maSzPix, maDispPt, maDispSz, *mpOut ); } |