Browse Source

Resolve memory leak in sources

Bart van Strien 14 years ago
parent
commit
9c11bfa236
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/modules/audio/openal/Pool.cpp

+ 1 - 0
src/modules/audio/openal/Pool.cpp

@@ -159,6 +159,7 @@ namespace openal
 		for(std::map<Source *, ALuint>::iterator i = playing.begin(); i != playing.end(); i++)
 		for(std::map<Source *, ALuint>::iterator i = playing.begin(); i != playing.end(); i++)
 		{
 		{
 			i->first->stopAtomic();
 			i->first->stopAtomic();
+			i->first->release();
 			available.push(i->second);
 			available.push(i->second);
 		}
 		}