aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/module/GlobalModuleContext.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-12-15 13:14:17 +0000
committersaturneric <[email protected]>2023-12-15 13:14:17 +0000
commitf9a49043c35e73fc2d4ffb3ed9b39c33849c43b3 (patch)
tree7e03b0b62119ff5d5dcd732ec1ccb7d2296df86d /src/core/module/GlobalModuleContext.h
parentfix: slove some issues on memory and intilizations (diff)
downloadGpgFrontend-f9a49043c35e73fc2d4ffb3ed9b39c33849c43b3.tar.gz
GpgFrontend-f9a49043c35e73fc2d4ffb3ed9b39c33849c43b3.zip
fix: slove threading and memory issues
Diffstat (limited to 'src/core/module/GlobalModuleContext.h')
-rw-r--r--src/core/module/GlobalModuleContext.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/module/GlobalModuleContext.h b/src/core/module/GlobalModuleContext.h
index 1535f2ca..48c0b7ee 100644
--- a/src/core/module/GlobalModuleContext.h
+++ b/src/core/module/GlobalModuleContext.h
@@ -32,6 +32,7 @@
#include "core/module/Event.h"
#include "core/thread/TaskRunner.h"
+#include "function/SecureMemoryAllocator.h"
#include "module/GlobalRegisterTable.h"
namespace GpgFrontend::Module {
@@ -53,7 +54,7 @@ using TaskRunnerPtr = std::shared_ptr<Thread::TaskRunner>;
class GPGFRONTEND_CORE_EXPORT GlobalModuleContext : public QObject {
Q_OBJECT
public:
- explicit GlobalModuleContext(TaskRunnerPtr);
+ explicit GlobalModuleContext();
~GlobalModuleContext() override;
@@ -81,7 +82,7 @@ class GPGFRONTEND_CORE_EXPORT GlobalModuleContext : public QObject {
private:
class Impl;
- std::unique_ptr<Impl> p_;
+ SecureUniquePtr<Impl> p_;
};
} // namespace GpgFrontend::Module \ No newline at end of file