* fixed memory leak in compositor operation.
authorJeroen Bakker <j.bakker@atmind.nl>
Wed, 30 May 2012 13:07:55 +0000 (13:07 +0000)
committerJeroen Bakker <j.bakker@atmind.nl>
Wed, 30 May 2012 13:07:55 +0000 (13:07 +0000)
   - leaked when render result could not be received.

source/blender/compositor/operations/COM_CompositorOperation.cpp

index 5a919965ede33c6f5e08fb1ac429f21684a64fda..09e172f395e237f872d99e26cdd4e9947ae34d86 100644 (file)
@@ -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);