Clear a few buffers when possible

This commit is contained in:
Matt Johnston
2012-02-10 18:32:18 +08:00
parent 5454c2a7f1
commit 5feebd300e
2 changed files with 6 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ circbuffer * cbuf_new(unsigned int size) {
void cbuf_free(circbuffer * cbuf) {
m_burn(cbuf->data, cbuf->size);
m_free(cbuf->data);
m_free(cbuf);
}