From 9ed189ffe87ecae676acdf70e473a57cabfa00d5 Mon Sep 17 00:00:00 2001 From: bnnm Date: Sun, 17 Sep 2017 03:35:24 +0200 Subject: [PATCH] Fix Ogg leak --- src/coding/ogg_vorbis_decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coding/ogg_vorbis_decoder.c b/src/coding/ogg_vorbis_decoder.c index ceb12675..17fba4b8 100644 --- a/src/coding/ogg_vorbis_decoder.c +++ b/src/coding/ogg_vorbis_decoder.c @@ -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);