Permalink
Browse files

elimate small memory leaks in SoundManager

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@13283 3db68df2-c116-0410-a063-a993310a9797
  • Loading branch information...
1 parent a0f178e commit 6ab8e7a528f5ec83b2647f9a438127b30fc33cbf stwf committed Mar 14, 2013
Showing with 8 additions and 1 deletion.
  1. +8 −1 source/soundmanager/SoundManager.cpp
@@ -54,7 +54,9 @@ class CSoundManagerWorker
~CSoundManagerWorker()
{
-
+ delete m_Items;
+ CleanupItems();
+ delete m_DeadItems;
}
/**
@@ -284,6 +286,11 @@ CSoundManager::~CSoundManager()
if (m_Worker->Shutdown())
delete m_Worker;
+ delete m_ItemsMap;
+
+ if ( m_ALSourceBuffer != NULL )
+ delete[] m_ALSourceBuffer;
+
alcDestroyContext(m_Context);
alcCloseDevice(m_Device);
}

0 comments on commit 6ab8e7a

Please sign in to comment.