From 0133197dcdb555b298575ed153ab0835abeba9e2 Mon Sep 17 00:00:00 2001 From: stwf Date: Sat, 1 Sep 2012 02:41:48 +0000 Subject: [PATCH] proper disposal of single buffer sounds This was SVN commit r12574. --- source/soundmanager/items/CSoundItem.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/soundmanager/items/CSoundItem.cpp b/source/soundmanager/items/CSoundItem.cpp index afbdcc730b..dff19a9ed5 100644 --- a/source/soundmanager/items/CSoundItem.cpp +++ b/source/soundmanager/items/CSoundItem.cpp @@ -41,10 +41,9 @@ CSoundItem::CSoundItem(CSoundData* sndData) CSoundItem::~CSoundItem() { AL_CHECK - ALuint al_buf; Stop(); - alSourceUnqueueBuffers(m_ALSource, 1, &al_buf); + alSourcei(m_ALSource, AL_BUFFER, 0); AL_CHECK }