瀏覽代碼

Corrected possible memory leak #993

pull/995/head
Ray 6 年之前
父節點
當前提交
1878a9ea01
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      src/raudio.c

+ 5
- 1
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]);
}
}
//----------------------------------------------------------------------------------

Loading…
取消
儲存