mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
test/testaudio.c: Fix use-after-free warning
This commit is contained in:
parent
da2460f9e7
commit
045a4492f1
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue