fix for bug where that caused vector blur to crash but could also cause problems...
[blender.git] / source / blender / render / intern / source / rayshade.c
index e67cf6de6a1e3f7d022a499e9935d83061bc785a..b7541bcbd740744281d30553398ce4aadbd7f913 100644 (file)
@@ -878,11 +878,13 @@ void init_render_hammersley(Render *re)
 void free_lamp_qmcsampler(LampRen *lar)
 {
        QMC_freeSampler(lar->qsa);
 void free_lamp_qmcsampler(LampRen *lar)
 {
        QMC_freeSampler(lar->qsa);
+       lar->qsa = NULL;
 }
 
 void free_render_qmcsampler(Render *re)
 {
        QMC_freeSampler(re->qsa);
 }
 
 void free_render_qmcsampler(Render *re)
 {
        QMC_freeSampler(re->qsa);
+       re->qsa = NULL;
 }
 
 static int adaptive_sample_variance(int samples, float *col, float *colsq, float thresh)
 }
 
 static int adaptive_sample_variance(int samples, float *col, float *colsq, float thresh)