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.h | |
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.h')
-rw-r--r-- | src/GpgFrontendContext.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/GpgFrontendContext.h b/src/GpgFrontendContext.h index d72fb75b..fc027dd1 100644 --- a/src/GpgFrontendContext.h +++ b/src/GpgFrontendContext.h @@ -28,6 +28,8 @@ #pragma once +#include "core/function/SecureMemoryAllocator.h" + namespace GpgFrontend { struct GpgFrontendContext { @@ -36,9 +38,10 @@ struct GpgFrontendContext { spdlog::level::level_enum log_level; bool load_ui_env; - std::unique_ptr<QCoreApplication> app; + SecureUniquePtr<QCoreApplication> app; bool gather_external_gnupg_info; + bool load_default_gpg_context; /** * @brief Create a Instance object |