| commit | 8f21fe4994b49d84d2bceb585061f31b5bd3ff97 | [log] [tgz] |
|---|---|---|
| author | Anonymous Maarten <anonymous.maarten@gmail.com> | Tue Nov 18 08:35:56 2025 +0100 |
| committer | Anonymous Maarten <anonymous.maarten@gmail.com> | Tue Nov 18 08:35:56 2025 +0100 |
| tree | 1fbfccc10d306834c82a0cd2867893b59b86c03f | |
| parent | 44471b3ea45e551b6a531e895f168934bf72d606 [diff] |
testmouse: avoid use-after-free Bug was introduced in 17a891daa86d226e071a17ff34dc90c146c5d307
diff --git a/test/testmouse.c b/test/testmouse.c index 094b763..7ddecce 100644 --- a/test/testmouse.c +++ b/test/testmouse.c
@@ -347,7 +347,7 @@ while (active) { Object *next = active->next; - SDL_free(next); + SDL_free(active); active = next; } SDL_DestroyRenderer(loop_data.renderer);