aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/coreaudio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/coreaudio.c b/Alc/coreaudio.c
index 979dfbb7..5a94f7d3 100644
--- a/Alc/coreaudio.c
+++ b/Alc/coreaudio.c
@@ -55,7 +55,8 @@ static void destroy_buffer_list(AudioBufferList* list)
{
if(list)
{
- for(UInt32 i = 0;i < list->mNumberBuffers;i++)
+ UInt32 i;
+ for(i = 0;i < list->mNumberBuffers;i++)
free(list->mBuffers[i].mData);
free(list);
}