[xiph-commits] r14873 - trunk/cdparanoia/paranoia

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Mon May 12 12:01:39 PDT 2008


Author: xiphmont
Date: 2008-05-12 12:01:39 -0700 (Mon, 12 May 2008)
New Revision: 14873

Modified:
   trunk/cdparanoia/paranoia/paranoia.c
Log:
review/commit Peter Creath's bugfix patch 1



Modified: trunk/cdparanoia/paranoia/paranoia.c
===================================================================
--- trunk/cdparanoia/paranoia/paranoia.c	2008-05-12 18:35:13 UTC (rev 14872)
+++ trunk/cdparanoia/paranoia/paranoia.c	2008-05-12 19:01:39 UTC (rev 14873)
@@ -438,9 +438,8 @@
   
   for(j=end-1;j>=0;j--)if(vec[j]!=0)break;
   if(j<0 || end-j>MIN_SILENCE_BOUNDARY){
-    if(j<0)j=0;
     root->silenceflag=1;
-    root->silencebegin=rb(root)+j;
+    root->silencebegin=rb(root)+j+1;
     if(root->silencebegin<root->returnedlimit)
       root->silencebegin=root->returnedlimit;
   }
@@ -1003,6 +1002,8 @@
 void paranoia_free(cdrom_paranoia *p){
   paranoia_resetall(p);
   sort_free(p->sortcache);
+  free_list(p->cache, 1);
+  free_list(p->fragments, 1);
   free(p);
 }
 



More information about the commits mailing list