From 776059a4c3742c0208d8b90876ead95399ef7b13 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 14 Oct 2015 13:21:27 +0100 Subject: [PATCH] Fix double destruction of local ui --- src/main.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cc b/src/main.cc index 2293aa09..c18f8de7 100644 --- a/src/main.cc +++ b/src/main.cc @@ -327,9 +327,11 @@ std::unique_ptr create_local_ui(bool dummy_ui) if (not convert_to_client_pending and not ClientManager::instance().empty()) { - this->NCursesUI::~NCursesUI(); if (fork_server_to_background()) + { + this->NCursesUI::~NCursesUI(); exit(0); + } } }