[Bf-blender-cvs] [3d902b4b047] master: Fix Compositor: WorkScheduler task model deletes works

Manuel Castilla noreply at git.blender.org
Wed Apr 28 08:35:32 CEST 2021


Commit: 3d902b4b047b79a4553dd82265fcfa109b1e35d0
Author: Manuel Castilla
Date:   Wed Apr 28 08:20:12 2021 +0200
Branches: master
https://developer.blender.org/rB3d902b4b047b79a4553dd82265fcfa109b1e35d0

Fix Compositor: WorkScheduler task model deletes works

WorkScheduler task model deletes work packages after executing them. The other models don't do so. All models should handle packages the same way.

Reviewed By: #compositing, jbakker

Differential Revision: https://developer.blender.org/D11102

===================================================================

M	source/blender/compositor/intern/COM_WorkScheduler.cc

===================================================================

diff --git a/source/blender/compositor/intern/COM_WorkScheduler.cc b/source/blender/compositor/intern/COM_WorkScheduler.cc
index c940fe897b4..ee3a6dedd44 100644
--- a/source/blender/compositor/intern/COM_WorkScheduler.cc
+++ b/source/blender/compositor/intern/COM_WorkScheduler.cc
@@ -397,7 +397,6 @@ static void threading_model_task_execute(TaskPool *__restrict UNUSED(pool), void
   CPUDevice device(BLI_task_parallel_thread_id(nullptr));
   BLI_thread_local_set(g_thread_device, &device);
   device.execute(package);
-  delete package;
 }
 
 static void threading_model_task_schedule(WorkPackage *package)



More information about the Bf-blender-cvs mailing list