Merge branch 'for-upstream-stbvorbis-fix-memleaks' of https://github.com/manxorist/stb

pull/271/head
Sean Barrett 2016-04-02 02:58:19 -07:00
commit 8f368799e1
1 changed files with 6 additions and 0 deletions

View File

@ -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);
}