comparison th_util.c @ 61:c0eefd6b2d11

Merged.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 19 Sep 2012 23:56:06 +0300
parents eef9c6312b88 c12b66ec0362
children 40b6e8dca885
comparison
equal deleted inserted replaced
60:eef9c6312b88 61:c0eefd6b2d11
488 void th_ringbuf_free(qringbuf_t *buf) 488 void th_ringbuf_free(qringbuf_t *buf)
489 { 489 {
490 int i; 490 int i;
491 491
492 for (i = 0; i < buf->size; i++) 492 for (i = 0; i < buf->size; i++)
493 {
493 if (buf->data[i] != NULL) 494 if (buf->data[i] != NULL)
494 buf->deallocator(buf->data[i]); 495 buf->deallocator(buf->data[i]);
496 }
495 497
496 th_free(buf->data); 498 th_free(buf->data);
497 th_free(buf); 499 th_free(buf);
498 } 500 }
499 501