summaryrefslogtreecommitdiff
path: root/apps/codecs/libtremor/sharedbook.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libtremor/sharedbook.c')
-rw-r--r--apps/codecs/libtremor/sharedbook.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/codecs/libtremor/sharedbook.c b/apps/codecs/libtremor/sharedbook.c
index 884920ecda..e9cdd13329 100644
--- a/apps/codecs/libtremor/sharedbook.c
+++ b/apps/codecs/libtremor/sharedbook.c
@@ -295,15 +295,10 @@ static ogg_int32_t *_book_unquantize(const static_codebook *b,int n,
295 return(NULL); 295 return(NULL);
296} 296}
297 297
298void vorbis_staticbook_clear(static_codebook *b){ 298void vorbis_staticbook_destroy(static_codebook *b){
299 if(b->quantlist)_ogg_free(b->quantlist); 299 if(b->quantlist)_ogg_free(b->quantlist);
300 if(b->lengthlist)_ogg_free(b->lengthlist); 300 if(b->lengthlist)_ogg_free(b->lengthlist);
301 memset(b,0,sizeof(*b)); 301 memset(b,0,sizeof(*b));
302
303}
304
305void vorbis_staticbook_destroy(static_codebook *b){
306 vorbis_staticbook_clear(b);
307 _ogg_free(b); 302 _ogg_free(b);
308} 303}
309 304