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

This commit is contained in:
Petar Popovic authored and Sam Lantinga committed 2025-02-16 19:35:54 -08:00
1 parent da2460f9e7
commit 045a4492f1
1 file changed
+1
+1
View File
@@ -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);