twn_audio: fix ogg vorbis sample reuse

This commit is contained in:
veclavtalica 2025-03-08 01:38:38 +03:00
parent c07e16490e
commit 6d6230c6a1

View File

@ -196,7 +196,7 @@ static union AudioContext init_audio_context(const char *path, AudioFileType typ
static void free_audio_channel(AudioChannel channel) {
switch (channel.file_type) {
case AUDIO_FILE_TYPE_OGG: {
SDL_free(channel.context.vorbis.data);
stb_vorbis_close(channel.context.vorbis.handle);
break;
}
case AUDIO_FILE_TYPE_WAV: {