Changed: Only delete _ProcessName if not NULL

--HG--
branch : develop
feature/pipeline-tools
kervala 8 years ago
parent 00ab100192
commit 18dfbcd5a7

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

Loading…
Cancel
Save