Fix for theoretical memory leak. Oddly this leak didn't seem

to be happening, but might as well fix it anyway.
This commit is contained in:
Joseph Eagar
2008-02-15 09:42:25 +00:00
parent 87494c0ad8
commit 0ef89331e2

View File

@@ -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];