diff options
author | Saturneric <[email protected]> | 2022-05-20 18:41:11 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-05-20 18:41:11 +0000 |
commit | c77c13168897501a06da6b84faec2bc7badef052 (patch) | |
tree | 6d8d5b3cdb35e79527d33c63d4e69995f9c3f2df | |
parent | fix: solve issue caused by sig buffer (diff) | |
download | GpgFrontend-c77c13168897501a06da6b84faec2bc7badef052.tar.gz GpgFrontend-c77c13168897501a06da6b84faec2bc7badef052.zip |
fix(ui): there is possible null pointer dereference
-rw-r--r-- | src/ui/GpgFrontendApplication.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/GpgFrontendApplication.cpp b/src/ui/GpgFrontendApplication.cpp index 0427f6d5..4cb50b43 100644 --- a/src/ui/GpgFrontendApplication.cpp +++ b/src/ui/GpgFrontendApplication.cpp @@ -58,7 +58,7 @@ GpgFrontendApplication *GpgFrontendApplication::GetInstance(int argc, bool new_instance) { static GpgFrontendApplication *instance = nullptr; if (new_instance || !instance) { - if (!instance) { + if (instance != nullptr) { instance->quit(); delete instance; } |