print insanity-check message only in debug builds

This commit is contained in:
Robin Gareus 2015-09-04 22:36:14 +02:00
parent ad6c71e1fd
commit 015b588d65

View File

@ -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
}