mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[Bug 523065] libjar: use malloc instead of calloc for zlib. r=tglek
This commit is contained in:
parent
682f208abf
commit
94b107fca0
@ -124,10 +124,10 @@ static void *
|
||||
zlibAlloc(void *opaque, uInt items, uInt size)
|
||||
{
|
||||
nsRecyclingAllocator *zallocator = (nsRecyclingAllocator *)opaque;
|
||||
if (gZlibAllocator) {
|
||||
return gZlibAllocator->Calloc(items, size);
|
||||
if (zallocator) {
|
||||
return gZlibAllocator->Malloc(items * size);
|
||||
}
|
||||
return calloc(items, size);
|
||||
return malloc(items * size);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user