Browse code

Make sure device memory is freed

Bad Diode authored on 17/10/2023 15:26:46 • neauoire committed on 03/11/2023 00:30:14
Showing 1 changed files
... ...
@@ -510,6 +510,7 @@ static int
510 510
 emu_end(Uxn *u)
511 511
 {
512 512
 	free(u->ram);
513
+	free(u->dev);
513 514
 #ifdef _WIN32
514 515
 #pragma GCC diagnostic ignored "-Wint-to-pointer-cast"
515 516
 	TerminateThread((HANDLE)SDL_GetThreadID(stdin_thread), 0);