close vorbis stream before freeing data
parent
412f0ca179
commit
72c9dd4bda
|
@ -92,8 +92,8 @@ namespace MoonWorks.Audio
|
|||
|
||||
protected override void Destroy()
|
||||
{
|
||||
Marshal.FreeHGlobal(FileDataPtr);
|
||||
FAudio.stb_vorbis_close(VorbisHandle);
|
||||
Marshal.FreeHGlobal(FileDataPtr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue