From beafe53c1b8671d8e84f0546eb404597300448c7 Mon Sep 17 00:00:00 2001 From: saturneric Date: Thu, 14 Dec 2023 20:39:48 +0800 Subject: fix: slove issues on memory and add asan support for debug --- src/GpgFrontendContext.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/GpgFrontendContext.cpp') 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 +#include "core/utils/MemoryUtils.h" #include "ui/GpgFrontendApplication.h" namespace GpgFrontend { @@ -52,11 +53,11 @@ auto GpgFrontendContext::GetInstance() -> std::weak_ptr { } void GpgFrontendContext::InitCoreApplication() { - app = std::make_unique(argc, argv); + app = SecureCreateUniqueObject(argc, argv); } void GpgFrontendContext::InitGUIApplication() { - app = std::make_unique(argc, argv); + app = SecureCreateUniqueObject(argc, argv); } } // namespace GpgFrontend \ No newline at end of file -- cgit v1.2.3