mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 15:09:20 +02:00
Changed the memory allocation/deallocation to match the new ReAllocMem structure.
This commit is contained in:
parent
71d7f4ef38
commit
ef17ea6ec2
@ -119,14 +119,14 @@ begin
|
||||
DFreeMem(P);
|
||||
end;
|
||||
|
||||
function zlibAllocMem(AppData: Pointer; Items, Size: Integer): Pointer;cdecl;
|
||||
function zlibAllocMem(opaque:pointer; items:uInt; size:uInt):pointer;cdecl;
|
||||
begin
|
||||
Result:=DGetMem(Items*Size);
|
||||
end;
|
||||
|
||||
procedure zlibFreeMem(AppData, Block: Pointer);cdecl;
|
||||
procedure zlibFreeMem(opaque:pointer; address:pointer);cdecl;
|
||||
begin
|
||||
DFreeMem(Block);
|
||||
DFreeMem(address);
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user