diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-10-14 13:21:27 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-10-14 13:21:27 +0100 |
| commit | 776059a4c3742c0208d8b90876ead95399ef7b13 (patch) | |
| tree | f4bceabfda7efaf3ebcfc18a64c4d96c69b31798 /src | |
| parent | 43fb216772b6760a6c3ed95a37bfd1392f73e692 (diff) | |
Fix double destruction of local ui
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.cc | 4 |
1 files changed, 3 insertions, 1 deletions
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<UserInterface> 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); + } } } |
