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 <j.bakker@atmind.nl>2012-05-30 17:07:55 +0400
committerJeroen Bakker <j.bakker@atmind.nl>2012-05-30 17:07:55 +0400
commitada8dbe12aebdcd8c67c4299eb1f17b4cbe5ed2b (patch)
tree210abb558426670086fa01aeb2aa0b5f5bac5ea5 /source/blender/compositor/operations/COM_CompositorOperation.cpp
parentbe21080cb66194c3ccfe5a6b3ca9853b2b9601de (diff)
* fixed memory leak in compositor operation.
- leaked when render result could not be received.
Diffstat (limited to 'source/blender/compositor/operations/COM_CompositorOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_CompositorOperation.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/compositor/operations/COM_CompositorOperation.cpp b/source/blender/compositor/operations/COM_CompositorOperation.cpp
index 5a919965ede..09e172f395e 100644
--- a/source/blender/compositor/operations/COM_CompositorOperation.cpp
+++ b/source/blender/compositor/operations/COM_CompositorOperation.cpp
@@ -68,6 +68,10 @@ void CompositorOperation::deinitExecution()
MEM_freeN(rr->rectf);
}
rr->rectf = outputBuffer;
+ } else {
+ if (this->outputBuffer) {
+ MEM_freeN(this->outputBuffer);
+ }
}
if (re) {
RE_ReleaseResult(re);