aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/thread/TaskRunner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/thread/TaskRunner.cpp')
-rw-r--r--src/core/thread/TaskRunner.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/thread/TaskRunner.cpp b/src/core/thread/TaskRunner.cpp
index 88913bc4..a4a97b38 100644
--- a/src/core/thread/TaskRunner.cpp
+++ b/src/core/thread/TaskRunner.cpp
@@ -84,7 +84,8 @@ class TaskRunner::Impl : public QThread {
}
};
-GpgFrontend::Thread::TaskRunner::TaskRunner() : p_(std::make_unique<Impl>()) {}
+GpgFrontend::Thread::TaskRunner::TaskRunner()
+ : p_(SecureCreateUniqueObject<Impl>()) {}
GpgFrontend::Thread::TaskRunner::~TaskRunner() {
if (p_->isRunning()) {