diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-02-17 17:10:23 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-02-17 17:25:24 +0300 |
commit | 6afc04f2a016eb6b20a6d31ebf1068c25a60768d (patch) | |
tree | e4daee2027cd2b437d5a6517c94bfb258bfb1adf /source/blender/compositor/intern/COM_compositor.cpp | |
parent | ef53859d24a9720882e3ca6c5415faefec6fb82c (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.cpp | 12 |
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); } |