Updated Quicktime code so settings can be stored in the blendfile.
[blender.git] / source / blender / blenkernel / intern / scene.c
index 44de11db7bbc163720c32ad7647e8f967e55fbea..c798945087055b34b527267d9066854802748c23 100644 (file)
@@ -1,4 +1,3 @@
-
 /*  scene.c
  *  
  * 
@@ -101,6 +100,17 @@ void free_avicodecdata(AviCodecData *acd)
        }
 }
 
+void free_qtcodecdata(QuicktimeCodecData *qcd)
+{
+       if (qcd) {
+               if (qcd->cdParms){
+                       MEM_freeN(qcd->cdParms);
+                       qcd->cdParms = NULL;
+                       qcd->cdSize = 0;
+               }
+       }
+}
+
 /* do not free scene itself */
 void free_scene(Scene *sce)
 {
@@ -125,6 +135,11 @@ void free_scene(Scene *sce)
                MEM_freeN(sce->r.avicodecdata);
                sce->r.avicodecdata = NULL;
        }
+       if (sce->r.qtcodecdata) {
+               free_qtcodecdata(sce->r.qtcodecdata);
+               MEM_freeN(sce->r.qtcodecdata);
+               sce->r.qtcodecdata = NULL;
+       }
 }
 
 Scene *add_scene(char *name)