diff --git a/stb_vorbis.c b/stb_vorbis.c index 78b859c..4cd02de 100644 --- a/stb_vorbis.c +++ b/stb_vorbis.c @@ -2246,6 +2246,11 @@ static void decode_residue(vorb *f, float *residue_buffers[], int ch, int n, int } done: CHECK(f); + #ifndef STB_VORBIS_DIVIDES_IN_RESIDUE + temp_free(f,part_classdata); + #else + temp_free(f,classifications); + #endif temp_alloc_restore(f,temp_alloc_point); } @@ -2891,6 +2896,7 @@ static void inverse_mdct(float *buffer, int n, vorb *f, int blocktype) } } + temp_free(f,buf2); temp_alloc_restore(f,save_point); }