Fixed crash when shutting down Icinga.

This commit is contained in:
Gunnar Beutner 2012-08-14 10:31:19 +02:00
parent a9610ecb9e
commit a3cdcae7ce
1 changed files with 2 additions and 0 deletions

View File

@ -301,6 +301,8 @@ int Application::Run(int argc, char **argv)
} else {
try {
result = Main(m_Arguments);
Application::m_Instance.reset();
} catch (const exception& ex) {
Application::m_Instance.reset();