From 72c9dd4bda6b896e54b60d198862f1b913bec334 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Fri, 8 Apr 2022 00:17:58 -0700 Subject: [PATCH] close vorbis stream before freeing data --- src/Audio/StreamingSoundOgg.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Audio/StreamingSoundOgg.cs b/src/Audio/StreamingSoundOgg.cs index 938d2d29..a83e95a4 100644 --- a/src/Audio/StreamingSoundOgg.cs +++ b/src/Audio/StreamingSoundOgg.cs @@ -92,8 +92,8 @@ namespace MoonWorks.Audio protected override void Destroy() { - Marshal.FreeHGlobal(FileDataPtr); FAudio.stb_vorbis_close(VorbisHandle); + Marshal.FreeHGlobal(FileDataPtr); } } }