fix crash in compositing nodes passing on NULL compbuf.

(revision 27415 from render25 branch)
This commit is contained in:
2010-03-11 17:19:08 +00:00
parent d82e88d265
commit d896c1f21f

View File

@@ -73,7 +73,7 @@ CompBuf *dupalloc_compbuf(CompBuf *cbuf)
/* instead of reference counting, we create a list */
CompBuf *pass_on_compbuf(CompBuf *cbuf)
{
CompBuf *dupbuf= alloc_compbuf(cbuf->x, cbuf->y, cbuf->type, 0);
CompBuf *dupbuf= (cbuf)? alloc_compbuf(cbuf->x, cbuf->y, cbuf->type, 0): NULL;
CompBuf *lastbuf;
if(dupbuf) {