[PATCH 2/2] fix memleak
Takeshi Abe
tabe at fixedpoint.jp
Wed Feb 9 10:11:10 PST 2011
---
vcl/source/gdi/outdev6.cxx | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/vcl/source/gdi/outdev6.cxx b/vcl/source/gdi/outdev6.cxx
index bf26e17..e1dca1b 100644
--- a/vcl/source/gdi/outdev6.cxx
+++ b/vcl/source/gdi/outdev6.cxx
@@ -711,6 +711,8 @@ void OutputDevice::DrawTransparent( const GDIMetaFile& rMtf, const Point& rPos,
pVDev->EnableMapMode(false);
const AlphaMask aAlpha(pVDev->GetBitmap(aPoint, pVDev->GetOutputSizePixel()));
+ delete pVDev;
+
// draw masked content to target and restore MapMode
DrawBitmapEx(aDstRect.TopLeft(), BitmapEx(aPaint, aAlpha));
EnableMapMode(bOrigMapModeEnabled);
--
1.7.2.3
----Next_Part(Thu_Feb_10_03_15_24_2011_105)----
More information about the LibreOffice
mailing list