mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-08 07:37:27 +01:00
win32 interface: fixed memleak
git-svn-id: trunk@11868 -
This commit is contained in:
parent
27ba3ff652
commit
9ec2fe74a3
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user