win32 interface: fixed memleak

git-svn-id: trunk@11868 -
This commit is contained in:
vincents 2007-08-27 09:14:59 +00:00
parent 27ba3ff652
commit 9ec2fe74a3

View File

@ -3268,6 +3268,7 @@ function TWin32WidgetSet.StretchMaskBlt(DestDC: HDC; X, Y, Width, Height: Intege
Header.biCompression := BI_RGB;
Result := Windows.CreateDIBitmap(SrcDC, Header, CBM_INIT, Data, Windows.TBitmapInfo((@Header)^), DIB_RGB_COLORS);
Freemem(Data);
end;
var
MaskDC, CopyDC, AlphaDC: HDC;