summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/ardour/session_handle.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/session_handle.cc b/libs/ardour/session_handle.cc
index e9284b7c98..99358dad03 100644
--- a/libs/ardour/session_handle.cc
+++ b/libs/ardour/session_handle.cc
@@ -83,9 +83,11 @@ SessionHandleRef::session_going_away ()
void
SessionHandleRef::insanity_check ()
{
+#ifndef NDEBUG
cerr << string_compose (
_("programming error: %1"),
string_compose("SessionHandleRef exists across session deletion! Dynamic type: %1 @ %2",
PBD::demangled_name (*this), this))
<< endl;
+#endif
}