changeset 307:a6304a3719ee

Free every item in the ringbuffer instead of just up to N.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 11 Jun 2011 05:46:29 +0300
parents 21528fe535fb
children e2da8c812f56
files th_util.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/th_util.c	Sat Jun 11 05:36:09 2011 +0300
+++ b/th_util.c	Sat Jun 11 05:46:29 2011 +0300
@@ -428,7 +428,7 @@
 {
     int i;
     
-    for (i = 0; i < buf->n; i++)
+    for (i = 0; i < buf->size; i++)
         if (buf->data[i] != NULL)
             buf->deallocator(buf->data[i]);