diff options
author | saturneric <[email protected]> | 2023-12-14 08:58:53 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-12-14 08:58:53 +0000 |
commit | 79783510863445b5068eef092a1f2650733a5b02 (patch) | |
tree | d8e6070b85467451c658ce4122c45a5a132e6d44 /src/core/function/gpg/GpgContext.h | |
parent | fix: slove a memory issue found by valgrind (diff) | |
download | GpgFrontend-79783510863445b5068eef092a1f2650733a5b02.tar.gz GpgFrontend-79783510863445b5068eef092a1f2650733a5b02.zip |
fix: slove some memory issues
Diffstat (limited to 'src/core/function/gpg/GpgContext.h')
-rw-r--r-- | src/core/function/gpg/GpgContext.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/function/gpg/GpgContext.h b/src/core/function/gpg/GpgContext.h index b53344fd..5f6b5b86 100644 --- a/src/core/function/gpg/GpgContext.h +++ b/src/core/function/gpg/GpgContext.h @@ -28,6 +28,7 @@ #pragma once +#include "core/function/SecureMemoryAllocator.h" #include "core/function/basic/GpgFunctionObject.h" namespace GpgFrontend { @@ -72,6 +73,6 @@ class GPGFRONTEND_CORE_EXPORT GpgContext private: class Impl; - std::unique_ptr<Impl> p_; + UniquePtrWithSecureDeleter<Impl> p_; }; } // namespace GpgFrontend |