Browse Source

Corrected possible memory leak #993

pull/995/head
Ray 5 years ago
parent
commit
1878a9ea01
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/raudio.c

+ 5
- 1
src/raudio.c View File

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

Loading…
Cancel
Save