close vorbis stream before freeing data

main
cosmonaut 2022-04-08 00:17:58 -07:00
parent 3ea7304051
commit b6bf39e3c9
1 changed files with 1 additions and 1 deletions

View File

@ -92,8 +92,8 @@ namespace MoonWorks.Audio
protected override void Destroy()
{
Marshal.FreeHGlobal(FileDataPtr);
FAudio.stb_vorbis_close(VorbisHandle);
Marshal.FreeHGlobal(FileDataPtr);
}
}
}