Explorar el Código

Corrected possible memory leak #993

pull/995/head
Ray hace 6 años
padre
commit
1878a9ea01
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. +5
    -1
      src/raudio.c

+ 5
- 1
src/raudio.c Ver fichero

@ -474,7 +474,11 @@ static void InitAudioBufferPool()
// Close the audio buffers pool
static void CloseAudioBufferPool()
{
for (int i = 0; i < MAX_AUDIO_BUFFER_POOL_CHANNELS; i++) RL_FREE(audioBufferPool[i]);
for (int i = 0; i < MAX_AUDIO_BUFFER_POOL_CHANNELS; i++)
{
RL_FREE(audioBufferPool[i]->buffer);
RL_FREE(audioBufferPool[i]);
}
}
//----------------------------------------------------------------------------------

Cargando…
Cancelar
Guardar