From e1518d078669e2f2aa27d93e3a950ab83fa15525 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Tue, 11 Aug 2026 10:06:04 -0400
Subject: [PATCH] MIX_Quit: minor logic cleanup.
---
src/SDL_mixer.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/SDL_mixer.c b/src/SDL_mixer.c
index 31cba15a..b1ef3f58 100644
--- a/src/SDL_mixer.c
+++ b/src/SDL_mixer.c
@@ -720,10 +720,8 @@ void MIX_Quit(void)
SDL_assert(mixer_initialized >= 0);
if (mixer_initialized <= 0) {
- return; // not mixer_initialized
- }
-
- if (mixer_initialized > 1) {
+ return; // not initialized.
+ } else if (mixer_initialized > 1) {
mixer_initialized--;
return; // more refcounts to go.
}