[xiph-commits] r13161 - trunk/Tremor

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Wed Jun 20 23:33:37 PDT 2007


Author: xiphmont
Date: 2007-06-20 23:33:37 -0700 (Wed, 20 Jun 2007)
New Revision: 13161

Modified:
   trunk/Tremor/info.c
Log:
 Correct a cleanup dispatch error when a bitstream is rejected due to
 illegal map/floor/residue type. The cleanup subdispatch was done by
 type, unfortunately, the invalid type just read in. Fixed.



Modified: trunk/Tremor/info.c
===================================================================
--- trunk/Tremor/info.c	2007-06-21 06:20:08 UTC (rev 13160)
+++ trunk/Tremor/info.c	2007-06-21 06:33:37 UTC (rev 13161)
@@ -123,13 +123,16 @@
       if(ci->mode_param[i])_ogg_free(ci->mode_param[i]);
 
     for(i=0;i<ci->maps;i++) /* unpack does the range checking */
-      _mapping_P[ci->map_type[i]]->free_info(ci->map_param[i]);
+      if(ci->map_param[i])
+	_mapping_P[ci->map_type[i]]->free_info(ci->map_param[i]);
 
     for(i=0;i<ci->floors;i++) /* unpack does the range checking */
-      _floor_P[ci->floor_type[i]]->free_info(ci->floor_param[i]);
+      if(ci->floor_param[i])
+	_floor_P[ci->floor_type[i]]->free_info(ci->floor_param[i]);
     
     for(i=0;i<ci->residues;i++) /* unpack does the range checking */
-      _residue_P[ci->residue_type[i]]->free_info(ci->residue_param[i]);
+      if(ci->residue_param[i])
+	_residue_P[ci->residue_type[i]]->free_info(ci->residue_param[i]);
 
     for(i=0;i<ci->books;i++){
       if(ci->book_param[i]){



More information about the commits mailing list