mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
test/testaudio.c: Fix use-after-free warning
This commit is contained in:

committed by
Sam Lantinga

parent
da2460f9e7
commit
045a4492f1
@@ -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);
|
||||
|
Reference in New Issue
Block a user