mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 00:09:32 +02:00
amunits: in agraphics legacy support, use ExecFreeMem (OS call) instead of FreeMem (RTL call) to free the Bitmap which was created using ExecAllocMem
This commit is contained in:
parent
53a67b34b5
commit
539f2cd7f0
@ -2605,7 +2605,7 @@ begin
|
||||
for i := 0 to Depth - 1 do
|
||||
if MyBM^.Planes[i] <> nil then
|
||||
FreeRaster(MyBM^.Planes[i], Width, Height);
|
||||
FreeMem(MyBM, SizeOf(TBitMap));
|
||||
ExecFreeMem(MyBM, SizeOf(TBitMap));
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user