summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorMathias Buhr <napcode@apparatus.de>2016-02-26 22:35:58 +0100
committerPaul Davis <paul@linuxaudiosystems.com>2016-02-27 16:02:36 -0500
commit2bd7b4afb8a7c57dc7731237eafa107854f62d32 (patch)
treefde3e57e48b911b745788e15938ba8170caaf72d /gtk2_ardour
parent7ce373e6f0fa87fb20f41c5dae75c16d4005bad8 (diff)
Adds an assert to fail explicitely
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/mixer_ui.cc2
1 files changed, 2 insertions, 0 deletions
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;
}