SDL: test/testaudio.c: Fix use-after-free warning

From 045a4492f185ba283978683b0f4734327bb2c8c3 Mon Sep 17 00:00:00 2001
From: Petar Popovic <[EMAIL REDACTED]>
Date: Mon, 17 Feb 2025 04:06:50 +0100
Subject: [PATCH] test/testaudio.c: Fix use-after-free warning

---
 test/testaudio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/testaudio.c b/test/testaudio.c
index c39861f35b43b..8abb3b2d95630 100644
--- a/test/testaudio.c
+++ b/test/testaudio.c
@@ -300,6 +300,7 @@ static void DestroyThing(Thing *thing)
     }
 
     if (thing->prev) {
+        SDL_assert(thing != things);
         thing->prev->next = thing->next;
     } else {
         SDL_assert(thing == things);