diff options
author | Joseph Eagar <joeedh@gmail.com> | 2008-02-15 12:42:25 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2008-02-15 12:42:25 +0300 |
commit | 0ef89331e2a4a235bc17f82fe52a0e567c0e47c8 (patch) | |
tree | 65e1476308defd203d9bfb1eb73c10bf047d696d /source/blender/nodes | |
parent | 87494c0ad84794545ce03f7b39ddd365c3500a28 (diff) |
Fix for theoretical memory leak. Oddly this leak didn't seem
to be happening, but might as well fix it anyway.
Diffstat (limited to 'source/blender/nodes')
-rw-r--r-- | source/blender/nodes/intern/CMP_nodes/CMP_image.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_image.c b/source/blender/nodes/intern/CMP_nodes/CMP_image.c index 6a82e8a9254..06c3b90e828 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_image.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_image.c @@ -211,8 +211,10 @@ static void node_composit_exec_image(void *data, bNode *node, bNodeStack **in, b to the source imbuf, and we don't want to change that.*/ stackbuf->rect = MEM_dupallocN(stackbuf->rect); - /*premul the image*/ + /*flag that we can free the buffer.*/ + stackbuf->malloc = 1; + /*premul the image*/ pixel = stackbuf->rect; for (i=0; i<stackbuf->x*stackbuf->y; i++, pixel += 4) { pixel[0] *= pixel[3]; |