From 2c3f9f0f47173fba59b41ba7718a15ee1a0b41f4 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Tue, 17 Oct 2023 20:12:07 +0200 Subject: [PATCH] Fix wrong freeing of memory --- src/uxnemu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/uxnemu.c b/src/uxnemu.c index f165229..b124c0c 100644 --- a/src/uxnemu.c +++ b/src/uxnemu.c @@ -510,7 +510,6 @@ static int emu_end(Uxn *u) { free(u->ram); - free(u->dev); #ifdef _WIN32 #pragma GCC diagnostic ignored "-Wint-to-pointer-cast" TerminateThread((HANDLE)SDL_GetThreadID(stdin_thread), 0);