aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-07-05 20:19:22 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-07-05 20:19:22 -0700
commit8638076aa1cf3f1a975ac59ddaf0286acc7d39e2 (patch)
tree129a50e721f291d55a0ef995f82fb86bf56e1a35
parent965ee5687a475aa0a7e3756f0e5a7e1db26c6a16 (diff)
downloadPrismLauncher-8638076aa1cf3f1a975ac59ddaf0286acc7d39e2.tar.gz
PrismLauncher-8638076aa1cf3f1a975ac59ddaf0286acc7d39e2.tar.bz2
PrismLauncher-8638076aa1cf3f1a975ac59ddaf0286acc7d39e2.zip
fix(test): tasks test memmory leak. don't store local task copy.
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
-rw-r--r--tests/Task_test.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/Task_test.cpp b/tests/Task_test.cpp
index ef7042a5..41e51f83 100644
--- a/tests/Task_test.cpp
+++ b/tests/Task_test.cpp
@@ -64,11 +64,9 @@ class BigConcurrentTaskThread : public QThread {
// this number is enough to fill up 16 MiB of stack, more than enough to cause a problem.
static const unsigned s_num_tasks = 1 << 12;
{
- auto sub_tasks = std::array<BasicTask::Ptr, s_num_tasks>();
for (unsigned i = 0; i < s_num_tasks; i++) {
auto sub_task = makeShared<BasicTask>(false);
- sub_tasks[i] = sub_task;
big_task.addTask(sub_task);
}