[Bf-blender-cvs] [6afc04f2a01] master: Cleanup: Allocate Execution System on stack.
Jeroen Bakker
noreply at git.blender.org
Wed Feb 17 15:25:30 CET 2021
Commit: 6afc04f2a016eb6b20a6d31ebf1068c25a60768d
Author: Jeroen Bakker
Date: Wed Feb 17 15:10:23 2021 +0100
Branches: master
https://developer.blender.org/rB6afc04f2a016eb6b20a6d31ebf1068c25a60768d
Cleanup: Allocate Execution System on stack.
===================================================================
M source/blender/compositor/intern/COM_compositor.cpp
===================================================================
diff --git a/source/blender/compositor/intern/COM_compositor.cpp b/source/blender/compositor/intern/COM_compositor.cpp
index bccdd026ead..d0f8edaaede 100644
--- a/source/blender/compositor/intern/COM_compositor.cpp
+++ b/source/blender/compositor/intern/COM_compositor.cpp
@@ -87,10 +87,9 @@ void COM_execute(RenderData *rd,
bool twopass = (editingtree->flag & NTREE_TWO_PASS) && !rendering;
/* initialize execution system */
if (twopass) {
- ExecutionSystem *system = new ExecutionSystem(
- rd, scene, editingtree, rendering, twopass, viewSettings, displaySettings, viewName);
- system->execute();
- delete system;
+ ExecutionSystem fast_pass(
+ rd, scene, editingtree, rendering, true, viewSettings, displaySettings, viewName);
+ fast_pass.execute();
if (editingtree->test_break(editingtree->tbh)) {
// during editing multiple calls to this method can be triggered.
@@ -100,10 +99,9 @@ void COM_execute(RenderData *rd,
}
}
- ExecutionSystem *system = new ExecutionSystem(
+ ExecutionSystem system(
rd, scene, editingtree, rendering, false, viewSettings, displaySettings, viewName);
- system->execute();
- delete system;
+ system.execute();
BLI_mutex_unlock(&s_compositorMutex);
}
More information about the Bf-blender-cvs
mailing list