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)