diff options
author | saturneric <[email protected]> | 2023-12-15 13:14:17 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-12-15 13:14:17 +0000 |
commit | f9a49043c35e73fc2d4ffb3ed9b39c33849c43b3 (patch) | |
tree | 7e03b0b62119ff5d5dcd732ec1ccb7d2296df86d /src/core/module/GlobalRegisterTable.cpp | |
parent | fix: slove some issues on memory and intilizations (diff) | |
download | GpgFrontend-f9a49043c35e73fc2d4ffb3ed9b39c33849c43b3.tar.gz GpgFrontend-f9a49043c35e73fc2d4ffb3ed9b39c33849c43b3.zip |
fix: slove threading and memory issues
Diffstat (limited to 'src/core/module/GlobalRegisterTable.cpp')
-rw-r--r-- | src/core/module/GlobalRegisterTable.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/module/GlobalRegisterTable.cpp b/src/core/module/GlobalRegisterTable.cpp index 09c39dae..6f43aeb4 100644 --- a/src/core/module/GlobalRegisterTable.cpp +++ b/src/core/module/GlobalRegisterTable.cpp @@ -36,6 +36,9 @@ #include <utility> #include <vector> +#include "function/SecureMemoryAllocator.h" +#include "utils/MemoryUtils.h" + namespace GpgFrontend::Module { class GlobalRegisterTable::Impl { @@ -141,7 +144,8 @@ class GlobalRegisterTable::Impl { Table global_register_table_; }; -GlobalRegisterTable::GlobalRegisterTable() : p_(std::make_unique<Impl>(this)) {} +GlobalRegisterTable::GlobalRegisterTable() + : p_(SecureCreateUniqueObject<Impl>(this)) {} GlobalRegisterTable::~GlobalRegisterTable() = default; |