From 8522b11e3767e50a0cc26ff216a560dd0e1bb348 Mon Sep 17 00:00:00 2001 From: Igor Kushnir Date: Sun, 19 May 2019 13:42:16 +0300 Subject: [PATCH] Library: fix a crash at exit when server is disabled Startup::stop() called from LibraryWindow::closeEvent() crashes if listener is not initialized. --- YACReaderLibrary/server/startup.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/YACReaderLibrary/server/startup.cpp b/YACReaderLibrary/server/startup.cpp index be50c931..f490740f 100644 --- a/YACReaderLibrary/server/startup.cpp +++ b/YACReaderLibrary/server/startup.cpp @@ -142,6 +142,7 @@ void Startup::stop() { Startup::Startup() + : listener(nullptr) { }