diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-04-25 17:25:34 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-04-25 17:30:12 +0400 |
commit | 61eba8fd063b4c4a941205d1e8c1ac150cbe0e12 (patch) | |
tree | 8314200ab14b3c8f2ce7f992080fe07ed1703a85 /intern/cycles/kernel | |
parent | bef1edb3222bed589b670a77acbc0d5ce7b2148a (diff) |
Fix T39843: cycles memory leak rendering with high transparent depth.
Diffstat (limited to 'intern/cycles/kernel')
-rw-r--r-- | intern/cycles/kernel/kernel_shadow.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/intern/cycles/kernel/kernel_shadow.h b/intern/cycles/kernel/kernel_shadow.h index c02118fd17c..b350e068177 100644 --- a/intern/cycles/kernel/kernel_shadow.h +++ b/intern/cycles/kernel/kernel_shadow.h @@ -146,10 +146,6 @@ ccl_device_inline bool shadow_blocked(KernelGlobals *kg, PathState *state, Ray * bounce++; } - /* free dynamic storage */ - if(hits != hits_stack) - free(hits); - #ifdef __VOLUME__ /* attenuation for last line segment towards light */ if(ps.volume_stack[0].shader != SHADER_NONE) @@ -158,6 +154,10 @@ ccl_device_inline bool shadow_blocked(KernelGlobals *kg, PathState *state, Ray * *shadow *= throughput; } + + /* free dynamic storage */ + if(hits != hits_stack) + free(hits); } else { Intersection isect; |