From cffec5374b06db0e3052879234e1350dfaf8c246 Mon Sep 17 00:00:00 2001 From: Tim Terriberry Date: Thu, 14 Oct 2010 01:33:46 +0000 Subject: Port r17029 and r17050 from libvorbis. Fix leak when aborting out of static_codebook unpack. Closes #1663. git-svn-id: https://svn.xiph.org/trunk/Tremor@17530 0101bb08-14d6-0310-b084-bc0e0c8e3800 --- codebook.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'codebook.h') diff --git a/codebook.h b/codebook.h index 07cf812..bb13942 100644 --- a/codebook.h +++ b/codebook.h @@ -76,14 +76,13 @@ typedef struct codebook{ } codebook; -extern void vorbis_staticbook_clear(static_codebook *b); extern void vorbis_staticbook_destroy(static_codebook *b); extern int vorbis_book_init_decode(codebook *dest,const static_codebook *source); extern void vorbis_book_clear(codebook *b); extern long _book_maptype1_quantvals(const static_codebook *b); -extern int vorbis_staticbook_unpack(oggpack_buffer *b,static_codebook *c); +extern static_codebook *vorbis_staticbook_unpack(oggpack_buffer *b); extern long vorbis_book_decode(codebook *book, oggpack_buffer *b); extern long vorbis_book_decodevs_add(codebook *book, ogg_int32_t *a, -- cgit v1.2.1