Skip to content
Snippets Groups Projects
Commit b15f8f62 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Set instance pointer to nullptr in destroy()

Useful for tests
parent 0af5c409
No related branches found
No related tags found
1 merge request!176Add HDF5 support
...@@ -14,4 +14,5 @@ ParallelChecker::destroy() ...@@ -14,4 +14,5 @@ ParallelChecker::destroy()
{ {
Assert(ParallelChecker::m_instance != nullptr, "ParallelChecker has already been destroyed"); Assert(ParallelChecker::m_instance != nullptr, "ParallelChecker has already been destroyed");
delete ParallelChecker::m_instance; delete ParallelChecker::m_instance;
ParallelChecker::m_instance = nullptr;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment