From 8f21fe4994b49d84d2bceb585061f31b5bd3ff97 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Tue, 18 Nov 2025 08:35:56 +0100 Subject: [PATCH] testmouse: avoid use-after-free Bug was introduced in 17a891daa86d226e071a17ff34dc90c146c5d307 --- test/testmouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testmouse.c b/test/testmouse.c index 094b763ddf..7ddecce222 100644 --- a/test/testmouse.c +++ b/test/testmouse.c @@ -347,7 +347,7 @@ int main(int argc, char *argv[]) while (active) { Object *next = active->next; - SDL_free(next); + SDL_free(active); active = next; } SDL_DestroyRenderer(loop_data.renderer);