2.5: Restored statistics in the info header.
[blender.git] / source / blender / blenkernel / intern / scene.c
index 2a8fd7653868728fcba6415f523fe7533ac0ca7f..6dd362d15a824c685c2c9c9a6f7b9732f08f1c3b 100644 (file)
@@ -155,6 +155,7 @@ Scene *copy_scene(Main *bmain, Scene *sce, int type)
                scen->theDag= NULL;
                scen->obedit= NULL;
                scen->toolsettings= MEM_dupallocN(sce->toolsettings);
+               scen->stats= NULL;
 
                ts= scen->toolsettings;
                if(ts) {
@@ -299,6 +300,9 @@ void free_scene(Scene *sce)
                ntreeFreeTree(sce->nodetree);
                MEM_freeN(sce->nodetree);
        }
+
+       if(sce->stats)
+               MEM_freeN(sce->stats);
 }
 
 Scene *add_scene(char *name)