Resolve memory leak in sources

This commit is contained in:
Bart van Strien
2011-07-24 13:51:24 +02:00
parent c924d17de9
commit 9c11bfa236
+1
View File
@@ -159,6 +159,7 @@ namespace openal
for(std::map<Source *, ALuint>::iterator i = playing.begin(); i != playing.end(); i++)
{
i->first->stopAtomic();
i->first->release();
available.push(i->second);
}