Don't bother allocating cleared memory for buffer storage

This commit is contained in:
Chris Robinson
2018-01-22 15:46:46 -08:00
parent fce72610bb
commit d6d6ec03f1
+1 -1
View File
@@ -932,7 +932,7 @@ static ALenum LoadData(ALbuffer *ALBuf, ALuint freq, ALsizei frames, enum UserFm
newsize = (newsize+15) & ~0xf;
if(newsize != ALBuf->BytesAlloc)
{
void *temp = al_calloc(16, (size_t)newsize);
void *temp = al_malloc(16, (size_t)newsize);
if(!temp && newsize)
{
WriteUnlock(&ALBuf->lock);