From c658bf9d2a0e6d93dfa9802bf79f93c8970b3053 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 24 Apr 2016 15:28:38 +0300 Subject: [PATCH] Kill trap threads before memory is freed. --- autoconf.cpp | 1 - devices.cpp | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/autoconf.cpp b/autoconf.cpp index c5a507b4..68b24683 100644 --- a/autoconf.cpp +++ b/autoconf.cpp @@ -533,7 +533,6 @@ void rtarea_init_mem (void) void rtarea_free(void) { mapped_free(&rtarea_bank); - free_traps(); } void rtarea_init(void) diff --git a/devices.cpp b/devices.cpp index 2428544a..5a970eeb 100644 --- a/devices.cpp +++ b/devices.cpp @@ -295,6 +295,7 @@ void reset_all_systems (void) void do_leave_program (void) { + free_traps(); sampler_free (); graphics_leave (); inputdevice_close (); -- 2.47.3