[xiph-commits] r3009 - liboggplay/trunk/src/liboggplay

shans at svn.annodex.net shans at svn.annodex.net
Wed Jun 20 15:38:54 PDT 2007


Author: shans
Date: 2007-06-20 15:38:54 -0700 (Wed, 20 Jun 2007)
New Revision: 3009

Modified:
   liboggplay/trunk/src/liboggplay/oggplay_buffer.c
Log:
Fixed bad looping index leading to double free (thanks for finding this doublec!)


Modified: liboggplay/trunk/src/liboggplay/oggplay_buffer.c
===================================================================
--- liboggplay/trunk/src/liboggplay/oggplay_buffer.c	2007-06-20 09:35:01 UTC (rev 3008)
+++ liboggplay/trunk/src/liboggplay/oggplay_buffer.c	2007-06-20 22:38:54 UTC (rev 3009)
@@ -82,7 +82,7 @@
   for (i = 0; i < buffer->buffer_size; i++) {
     if (buffer->buffer_mirror[i] != NULL) {
       OggPlayCallbackInfo *ti = (OggPlayCallbackInfo *)buffer->buffer_mirror[i];
-      for (j = 0; i < me->num_tracks; i++) {
+      for (j = 0; j < me->num_tracks; j++) {
         free((ti + j)->records);
       }
       free(ti);



More information about the commits mailing list