Increase usage of safe delete and release templates

refs #564
This commit is contained in:
Roland Winklmeier
2016-01-04 15:57:08 +01:00
parent 4d6c92e6c8
commit 41da652b96
5 changed files with 7 additions and 16 deletions

View File

@@ -41,11 +41,8 @@ namespace BlackSimPlugin
m_directPlayPeer->Release();
}
if (m_deviceAddress)
m_deviceAddress->Release();
if (m_hostAddress)
m_hostAddress->Release();
SafeRelease(m_deviceAddress);
SafeRelease(m_hostAddress);
if (m_dpLobbyClient)
{