Fix double destruction of local ui

This commit is contained in:
Maxime Coste 2015-10-14 13:21:27 +01:00
parent 43fb216772
commit 776059a4c3

View File

@ -327,11 +327,13 @@ std::unique_ptr<UserInterface> create_local_ui(bool dummy_ui)
if (not convert_to_client_pending and if (not convert_to_client_pending and
not ClientManager::instance().empty()) not ClientManager::instance().empty())
{ {
this->NCursesUI::~NCursesUI();
if (fork_server_to_background()) if (fork_server_to_background())
{
this->NCursesUI::~NCursesUI();
exit(0); exit(0);
} }
} }
}
private: private:
using SigHandler = void (*)(int); using SigHandler = void (*)(int);