close vorbis stream before freeing data

pull/18/head
cosmonaut 2022-04-08 00:17:58 -07:00
parent 412f0ca179
commit 72c9dd4bda
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);
}
}
}