Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2021-02-17 17:10:23 +0300
committerJeroen Bakker <jeroen@blender.org>2021-02-17 17:25:24 +0300
commit6afc04f2a016eb6b20a6d31ebf1068c25a60768d (patch)
treee4daee2027cd2b437d5a6517c94bfb258bfb1adf /source/blender/compositor/intern/COM_compositor.cpp
parentef53859d24a9720882e3ca6c5415faefec6fb82c (diff)
Cleanup: Allocate Execution System on stack.
Diffstat (limited to 'source/blender/compositor/intern/COM_compositor.cpp')
-rw-r--r--source/blender/compositor/intern/COM_compositor.cpp12
1 files changed, 5 insertions, 7 deletions
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);
}