diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-03-11 20:19:08 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-03-11 20:19:08 +0300 |
commit | d896c1f21f2e6b1f98a1a18dae649c065f9aa06d (patch) | |
tree | db4c412c7bb12e251d98caeb8706530f19de28cb /source/blender/nodes/intern/CMP_util.c | |
parent | d82e88d26521cdd8fa30c73ea3d3634721d971bd (diff) |
fix crash in compositing nodes passing on NULL compbuf.
(revision 27415 from render25 branch)
Diffstat (limited to 'source/blender/nodes/intern/CMP_util.c')
-rw-r--r-- | source/blender/nodes/intern/CMP_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/CMP_util.c b/source/blender/nodes/intern/CMP_util.c index 7d080304905..1d64cf0b45f 100644 --- a/source/blender/nodes/intern/CMP_util.c +++ b/source/blender/nodes/intern/CMP_util.c @@ -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) { |