From 2b4dc08120f1fb1016cc93e1383f1ad42ede82ad Mon Sep 17 00:00:00 2001 From: lixiang Date: Mon, 1 Apr 2024 21:39:18 +0800 Subject: [PATCH] memory leak bug fix Signed-off-by: lixiang --- services/src/concurrent_task_controller.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/src/concurrent_task_controller.cpp b/services/src/concurrent_task_controller.cpp index 8eb4245..47fdd33 100644 --- a/services/src/concurrent_task_controller.cpp +++ b/services/src/concurrent_task_controller.cpp @@ -431,9 +431,8 @@ void TaskController::NewForegroundAppRecord(int pid, int uiTid, bool ddlEnabled) tempRecord->AddKeyThread(uiTid, PRIO_RT); } tempRecord->BeginScene(); - } else { - delete tempRecord; } + delete tempRecord; } void TaskController::NewBackground(int uid, int pid) -- Gitee