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

@@ -8,6 +8,7 @@
*/
#include "hostnode.h"
#include "directplayutils.h"
namespace BlackSimPlugin
{
@@ -25,10 +26,7 @@ namespace BlackSimPlugin
CHostNode::~CHostNode()
{
if (m_hostAddress)
m_hostAddress->Release();
m_hostAddress = nullptr;
SafeRelease(m_hostAddress);
}
}
}