diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-09-18 13:05:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-09-18 13:28:48 +0100 |
commit | 23d4d2f6ac5aa2ca94109e07421a1ed8330b85bd (patch) | |
tree | ad07a995f35b95c854b4d73f38d7b536072461f3 /vcl | |
parent | 7af19f45b35c428d3e06972806e5a05489f45955 (diff) |
valgrind: memory leak in scoped_ptr/unique_ptr -> VclPtr convert
regression from
commit 820576af4fd6441a752742b43d804e9837839925
Author: Noel Grandin <noel@peralex.com>
Date: Thu Mar 19 13:54:12 2015 +0200
start wrapping OutputDevice in VclPtr
9,800 (568 direct, 9,232 indirect) bytes in 1 blocks are definitely lost in loss record 12,696 of 12,898
by 0xC602E72: ScopedVclPtrInstance<VirtualDevice>::ScopedVclPtrInstance<>() (vclptr.hxx:375)
Change-Id: I356f39c339fd28a9e19a00d61b6f1bee492f2638
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/outdev/transparent.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/outdev/transparent.cxx b/vcl/source/outdev/transparent.cxx index 910b7c530d38..4070216fe5fc 100644 --- a/vcl/source/outdev/transparent.cxx +++ b/vcl/source/outdev/transparent.cxx @@ -741,7 +741,7 @@ void OutputDevice::DrawTransparent( const GDIMetaFile& rMtf, const Point& rPos, const AlphaMask aAlpha(xVDev->GetBitmap(aPoint, xVDev->GetOutputSizePixel())); - xVDev.reset(); + xVDev.disposeAndClear(); // draw masked content to target and restore MapMode DrawBitmapEx(aDstRect.TopLeft(), BitmapEx(aPaint, aAlpha)); @@ -789,7 +789,7 @@ void OutputDevice::DrawTransparent( const GDIMetaFile& rMtf, const Point& rPos, aAlpha = xVDev->GetBitmap( Point(), xVDev->GetOutputSizePixel() ); - xVDev.reset(); + xVDev.disposeAndClear(); EnableMapMode( false ); DrawBitmapEx( aDstRect.TopLeft(), BitmapEx( aPaint, aAlpha ) ); |