From a63276e28490cc35dfef292097c401b5aa46c2f8 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Tue, 17 Oct 2023 17:26:46 +0200 Subject: [PATCH] Make sure device memory is freed --- src/uxnemu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/uxnemu.c b/src/uxnemu.c index 67f4951..a6ecdef 100644 --- a/src/uxnemu.c +++ b/src/uxnemu.c @@ -473,6 +473,7 @@ 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);