mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-25 20:48:30 +00:00
Corrected possible memory leak #993
This commit is contained in:
@@ -474,7 +474,11 @@ static void InitAudioBufferPool()
|
|||||||
// Close the audio buffers pool
|
// Close the audio buffers pool
|
||||||
static void CloseAudioBufferPool()
|
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]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user