mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-18 07:44:43 +01:00
Fix Ogg leak
This commit is contained in:
parent
dd027f32eb
commit
9ed189ffe8
@ -36,7 +36,7 @@ void seek_ogg_vorbis(VGMSTREAM *vgmstream, int32_t num_sample) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void free_ogg_vorbis(ogg_vorbis_codec_data *data) {
|
void free_ogg_vorbis(ogg_vorbis_codec_data *data) {
|
||||||
if (!data) {
|
if (data) {
|
||||||
OggVorbis_File *ogg_vorbis_file = &(data->ogg_vorbis_file);
|
OggVorbis_File *ogg_vorbis_file = &(data->ogg_vorbis_file);
|
||||||
|
|
||||||
ov_clear(ogg_vorbis_file);
|
ov_clear(ogg_vorbis_file);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user