From e0e769b5381a7461846fa65b9e1b1030da9b70c5 Mon Sep 17 00:00:00 2001 From: NyakoFox Date: Sun, 24 Nov 2024 22:43:06 -0400 Subject: [PATCH] A couple small fixes --- desktop_version/src/Music.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/desktop_version/src/Music.cpp b/desktop_version/src/Music.cpp index aadf2ad1..e5daa109 100644 --- a/desktop_version/src/Music.cpp +++ b/desktop_version/src/Music.cpp @@ -420,6 +420,7 @@ end: VVV_free(read_buf); VVV_free(decoded_buf_playing); VVV_free(decoded_buf_reserve); + VVV_free(filename); if (!IsHalted()) { VVV_freefunc(FAudioVoice_DestroyVoice, musicVoice); @@ -528,7 +529,7 @@ end: Uint8* decoded_buf_playing; Uint8* decoded_buf_reserve; Uint8* read_buf; - const char* filename; + char* filename; bool looseextra; bool shouldloop; bool valid; @@ -833,7 +834,7 @@ void musicclass::init(void) rw = PHYSFSRWOPS_openRead(track_name); \ if (rw == NULL) \ { \ - vlog_error("Unable to read loose music file: %s", SDL_GetError()); \ + vlog_error("Unable to read extra loose music file: %s", SDL_GetError()); \ } \ else \ { \