mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 03:09:13 +00:00
Get rid of DEL() and FREE() macros.
Part of CoreLibExe must die.
This commit is contained in:
@ -44,12 +44,12 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
|
||||
voidpf ZlibAlloc(voidpf opaque, uInt items, uInt size)
|
||||
{
|
||||
return ALLOC(items*size);
|
||||
return malloc(items*size);
|
||||
}
|
||||
|
||||
void ZlibFree(voidpf opaque, voidpf address)
|
||||
{
|
||||
FREE(address);
|
||||
free(address);
|
||||
}
|
||||
|
||||
plZlibStream::plZlibStream() : fOutput(nil), fZStream(nil), fHeader(kNeedMoreData), fDecompressedOk(false)
|
||||
@ -85,14 +85,14 @@ hsBool plZlibStream::Close()
|
||||
if (fOutput)
|
||||
{
|
||||
fOutput->Close();
|
||||
DEL(fOutput);
|
||||
delete fOutput;
|
||||
fOutput = nil;
|
||||
}
|
||||
if (fZStream)
|
||||
{
|
||||
z_streamp zstream = (z_streamp)fZStream;
|
||||
inflateEnd(zstream);
|
||||
DEL(zstream);
|
||||
delete zstream;
|
||||
fZStream = nil;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user