]> granicus.if.org Git - icinga2/commitdiff
Fixed crash when shutting down Icinga.
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 14 Aug 2012 08:31:19 +0000 (10:31 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 14 Aug 2012 08:31:19 +0000 (10:31 +0200)
base/application.cpp

index e4ab5234bbb0d5259112a1cfa748494f8ec6753e..d5255fea674e623ff23311667cb53223a37b4edf 100644 (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();