From 2bd7b4afb8a7c57dc7731237eafa107854f62d32 Mon Sep 17 00:00:00 2001 From: Mathias Buhr Date: Fri, 26 Feb 2016 22:35:58 +0100 Subject: [PATCH] Adds an assert to fail explicitely --- gtk2_ardour/mixer_ui.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index a7268c9987..ebede87dfa 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -432,6 +432,8 @@ Mixer_UI::add_strips (RouteList& routes) } } catch (const std::exception& e) { + // this should never happen as it leaks memory and leaves connections established + assert(false); error << string_compose (_("Error adding GUI elements for new tracks/busses %1"), e.what()) << endmsg; }