1
0
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:
Darryl Pogue
2011-10-23 20:52:33 -07:00
committed by Adam Johnson
parent be26b145df
commit 8a3f0cfd5b
88 changed files with 262 additions and 265 deletions

View File

@ -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;
}