From d2cba4d7ac11de98883968a22c16d9030d5a75dd Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 16 Nov 2015 21:55:57 -0500 Subject: [PATCH] fix inadvertently commit error related to at-process-exit deletion for thread private variable --- libs/pbd/stateful.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/pbd/stateful.cc b/libs/pbd/stateful.cc index 92314e1e53..ac36a69127 100644 --- a/libs/pbd/stateful.cc +++ b/libs/pbd/stateful.cc @@ -44,9 +44,9 @@ namespace PBD { int Stateful::current_state_version = 0; int Stateful::loading_state_version = 0; -static void regular_delete (void* p) { bool* bp = reinterpret_cast (p); delete bp; std::cerr << "Deleted RSSI bool\n"; } +static void do_not_delete (void*) {} -Glib::Threads::Private Stateful::regenerate_xml_or_string_ids (regular_delete); +Glib::Threads::Private Stateful::regenerate_xml_or_string_ids (do_not_delete); Stateful::Stateful () : _extra_xml (0)