From 05ed7e041cf6ca8f7ac366ba81da55c6e5911c64 Mon Sep 17 00:00:00 2001 From: Misa Date: Sat, 18 Mar 2023 17:51:55 -0700 Subject: [PATCH] Use `VVV_freefunc` to call `stb_vorbis_close` I noticed that this call wasn't using VVV_freefunc. I missed it earlier when going through Music.cpp and checking for instances when VVV_freefunc should have been used (a926ce98513f04b751f22907e9ce324da82b30d8). --- desktop_version/src/Music.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/Music.cpp b/desktop_version/src/Music.cpp index 1267f360..a0532433 100644 --- a/desktop_version/src/Music.cpp +++ b/desktop_version/src/Music.cpp @@ -294,7 +294,7 @@ end: void Dispose(void) { - stb_vorbis_close(vorbis); + VVV_freefunc(stb_vorbis_close, vorbis); VVV_free(read_buf); VVV_free(decoded_buf_playing); VVV_free(decoded_buf_reserve);