Small error detected by valgrind, thanks cam
authorMatt Ebb <matt@mke3.net>
Tue, 25 Aug 2009 08:11:37 +0000 (08:11 +0000)
committerMatt Ebb <matt@mke3.net>
Tue, 25 Aug 2009 08:11:37 +0000 (08:11 +0000)
source/blender/render/intern/source/volume_precache.c

index 0b81d775649a1399a25f9f31c00fc7c34489fec3..71200aa8b0d642e3cfee39cfc4f66f7c1db5699c 100644 (file)
@@ -712,6 +712,7 @@ void free_volume_precache(Render *re)
                        MEM_freeN(obi->volume_precache->data_r);
                        MEM_freeN(obi->volume_precache->data_g);
                        MEM_freeN(obi->volume_precache->data_b);
+                       obi->volume_precache = NULL;
                }
        }