Correctly zero-out entire structure

This commit is contained in:
Aaron Culliney 2015-09-07 11:07:49 -07:00
parent ef7472b3ac
commit 2cbc53ef45

View File

@ -421,7 +421,7 @@ static long opensl_createSoundBuffer(const AudioContext_s *audio_context, INOUT
voice = ctx->recycledVoices;
ctx->recycledVoices = voice->next;
uint8_t *prevBuffer = voice->ringBuffer;
memset(voice, 0x0, sizeof(SLVoice *));
memset(voice, 0x0, sizeof(*voice));
voice->bufferSize = bufferSize;
voice->ringBuffer = prevBuffer;
} else {