forked from 0ad/0ad
Avoid assertion failures on abnormal exit() (e.g. dumpSchema mode)
This was SVN commit r10530.
This commit is contained in:
parent
fbff0aa98d
commit
ade841efdd
@ -41,7 +41,8 @@ CProfiler2::CProfiler2() :
|
||||
|
||||
CProfiler2::~CProfiler2()
|
||||
{
|
||||
ENSURE(!m_Initialised); // should have called Shutdown() explicitly
|
||||
if (m_Initialised)
|
||||
Shutdown();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user