diff options
author | saturneric <[email protected]> | 2023-12-14 12:39:48 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-12-14 12:39:48 +0000 |
commit | beafe53c1b8671d8e84f0546eb404597300448c7 (patch) | |
tree | f9b3e2d1f1c94c344fe3f9df919f4be2e56b4cae /src/GpgFrontendContext.cpp | |
parent | fix: slove some memory issues (diff) | |
download | GpgFrontend-beafe53c1b8671d8e84f0546eb404597300448c7.tar.gz GpgFrontend-beafe53c1b8671d8e84f0546eb404597300448c7.zip |
fix: slove issues on memory and add asan support for debug
Diffstat (limited to 'src/GpgFrontendContext.cpp')
-rw-r--r-- | src/GpgFrontendContext.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/GpgFrontendContext.cpp b/src/GpgFrontendContext.cpp index 72d2b0c1..5f51975a 100644 --- a/src/GpgFrontendContext.cpp +++ b/src/GpgFrontendContext.cpp @@ -32,6 +32,7 @@ #include <memory> +#include "core/utils/MemoryUtils.h" #include "ui/GpgFrontendApplication.h" namespace GpgFrontend { @@ -52,11 +53,11 @@ auto GpgFrontendContext::GetInstance() -> std::weak_ptr<GpgFrontendContext> { } void GpgFrontendContext::InitCoreApplication() { - app = std::make_unique<QCoreApplication>(argc, argv); + app = SecureCreateUniqueObject<QCoreApplication>(argc, argv); } void GpgFrontendContext::InitGUIApplication() { - app = std::make_unique<UI::GpgFrontendApplication>(argc, argv); + app = SecureCreateUniqueObject<UI::GpgFrontendApplication>(argc, argv); } } // namespace GpgFrontend
\ No newline at end of file |