[xiph-commits] r17029 - trunk/vorbis/lib

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Wed Mar 24 22:29:15 PDT 2010


Author: xiphmont
Date: 2010-03-24 22:29:15 -0700 (Wed, 24 Mar 2010)
New Revision: 17029

Modified:
   trunk/vorbis/lib/info.c
Log:
Fix for Mozilla BZ#550184 and Xiph Trac #1656


Modified: trunk/vorbis/lib/info.c
===================================================================
--- trunk/vorbis/lib/info.c	2010-03-25 05:22:15 UTC (rev 17028)
+++ trunk/vorbis/lib/info.c	2010-03-25 05:29:15 UTC (rev 17029)
@@ -628,12 +628,12 @@
   oggpack_writeclear(&opb);
   return(0);
  err_out:
-  oggpack_writeclear(&opb);
   memset(op,0,sizeof(*op));
   memset(op_comm,0,sizeof(*op_comm));
   memset(op_code,0,sizeof(*op_code));
 
   if(b){
+    oggpack_writeclear(&opb);
     if(b->header)_ogg_free(b->header);
     if(b->header1)_ogg_free(b->header1);
     if(b->header2)_ogg_free(b->header2);



More information about the commits mailing list