comparison circbuffer.c @ 649:234cf769bcb3

Merge
author Matt Johnston <matt@ucc.asn.au>
date Fri, 10 Feb 2012 19:09:52 +0800
parents 4222a1039b06
children abd99ecd7ec2
comparison
equal deleted inserted replaced
639:452bcf810e44 649:234cf769bcb3
46 return cbuf; 46 return cbuf;
47 } 47 }
48 48
49 void cbuf_free(circbuffer * cbuf) { 49 void cbuf_free(circbuffer * cbuf) {
50 50
51 m_burn(cbuf->data, cbuf->size);
51 m_free(cbuf->data); 52 m_free(cbuf->data);
52 m_free(cbuf); 53 m_free(cbuf);
53 } 54 }
54 55
55 unsigned int cbuf_getused(circbuffer * cbuf) { 56 unsigned int cbuf_getused(circbuffer * cbuf) {