Changed: Only delete _ProcessName if not NULL

This commit is contained in:
kervala 2016-12-04 17:05:17 +01:00
parent 63c925371d
commit e3e2fe0e74

View file

@ -615,9 +615,13 @@ void CLog::releaseProcessName()
{ {
INelContext::getInstance().releaseSingletonPointer("NLMISC::CLog::_ProcessName", _ProcessName); INelContext::getInstance().releaseSingletonPointer("NLMISC::CLog::_ProcessName", _ProcessName);
} }
if (_ProcessName)
{
delete _ProcessName; delete _ProcessName;
_ProcessName = NULL; _ProcessName = NULL;
} }
}
} // NLMISC } // NLMISC