Try to fix compilation for gcc 4.6

This commit is contained in:
Eduardo Bart 2013-03-06 13:05:46 -03:00
parent 489688e9fb
commit 69f72b9c86
1 changed files with 4 additions and 2 deletions

View File

@ -59,8 +59,10 @@ void SoundManager::terminate()
{ {
ensureContext(); ensureContext();
for(auto it = m_streamFiles.begin(); it != m_streamFiles.end();++it) for(auto it = m_streamFiles.begin(); it != m_streamFiles.end();++it) {
it->second.wait(); auto& future = it->second;
future.wait();
}
m_streamFiles.clear(); m_streamFiles.clear();
m_sources.clear(); m_sources.clear();