aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/gpg/GpgContext.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-12-14 08:58:53 +0000
committersaturneric <[email protected]>2023-12-14 08:58:53 +0000
commit79783510863445b5068eef092a1f2650733a5b02 (patch)
treed8e6070b85467451c658ce4122c45a5a132e6d44 /src/core/function/gpg/GpgContext.h
parentfix: slove a memory issue found by valgrind (diff)
downloadGpgFrontend-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.h3
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