summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/raudio.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/raudio.c b/src/raudio.c
index 68fa95c8..188c0532 100644
--- a/src/raudio.c
+++ b/src/raudio.c
@@ -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]);
+ }
}
//----------------------------------------------------------------------------------