From 0ff911c0df711a9eba59ff364e82a3c33b570950 Mon Sep 17 00:00:00 2001 From: Christian Haas Date: Tue, 9 Apr 2024 08:45:33 +0200 Subject: [PATCH] Flip release of buffer; First it needs to be taken out of the processing chain, then it can be released. The inverse of the initialization. --- src/raudio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raudio.c b/src/raudio.c index 5065c6021..c66244846 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -1037,8 +1037,8 @@ void UnloadSoundAlias(Sound alias) // Untrack and unload just the sound buffer, not the sample data, it is shared with the source for the alias if (alias.stream.buffer != NULL) { - ma_data_converter_uninit(&alias.stream.buffer->converter, NULL); UntrackAudioBuffer(alias.stream.buffer); + ma_data_converter_uninit(&alias.stream.buffer->converter, NULL); RL_FREE(alias.stream.buffer); } }