close vorbis stream before freeing data
parent
3ea7304051
commit
b6bf39e3c9
|
@ -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