[gnote] Fix crash if null sync server is returned



commit 06c55462e6f44c5842199f6c6959a190f513f385
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Wed May 1 19:05:12 2019 +0300

    Fix crash if null sync server is returned

 src/synchronization/syncmanager.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/synchronization/syncmanager.cpp b/src/synchronization/syncmanager.cpp
index 74d808f8..87e2ed48 100644
--- a/src/synchronization/syncmanager.cpp
+++ b/src/synchronization/syncmanager.cpp
@@ -165,7 +165,7 @@ namespace sync {
       try {
         server = f.addin->create_sync_server();
         if(server == NULL)
-          throw new std::logic_error("addin.CreateSyncServer () returned null");
+          throw std::logic_error("addin.CreateSyncServer () returned null");
       }
       catch(std::exception & e) {
         set_state(SYNC_SERVER_CREATION_FAILED);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]