proper disposal of single buffer sounds

This was SVN commit r12574.
This commit is contained in:
stwf
2012-09-01 02:41:48 +00:00
parent 9cc8a0a40b
commit 0133197dcd
+1 -2
View File
@@ -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
}