Another good opportunity for the standard loop.

Also another smart pointer scouting spot.
This commit is contained in:
Jason Felds
2013-04-28 16:32:52 -04:00
parent 6533bd68ef
commit 3bbcff672c
+2 -2
View File
@@ -50,8 +50,8 @@ RageSoundManager::~RageSoundManager()
{
/* Don't lock while deleting the driver (the decoder thread might deadlock). */
delete m_pDriver;
FOREACHM( RString, RageSoundReader_Preload *, m_mapPreloadedSounds, s )
delete s->second;
for (std::pair<RString const &, RageSoundReader_Preload *> s : m_mapPreloadedSounds)
delete s.second;
m_mapPreloadedSounds.clear();
}