Fix Ogg leak

This commit is contained in:
bnnm 2017-09-17 03:35:24 +02:00
parent dd027f32eb
commit 9ed189ffe8

View File

@ -36,7 +36,7 @@ void seek_ogg_vorbis(VGMSTREAM *vgmstream, int32_t num_sample) {
}
void free_ogg_vorbis(ogg_vorbis_codec_data *data) {
if (!data) {
if (data) {
OggVorbis_File *ogg_vorbis_file = &(data->ogg_vorbis_file);
ov_clear(ogg_vorbis_file);