Ver a proveniência

Corrected possible memory leak #993

pull/995/head
Ray há 6 anos
ascendente
cometimento
1878a9ea01
1 ficheiros alterados com 5 adições e 1 eliminações
  1. +5
    -1
      src/raudio.c

+ 5
- 1
src/raudio.c Ver ficheiro

@ -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]);
}
}
//----------------------------------------------------------------------------------

Carregando…
Cancelar
Guardar