From a0482157a755a173318b8e6cbed537cf428be673 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 5 Feb 2015 18:02:57 -0500 Subject: [PATCH] do not attempt to call an empty/null boost functor in clear_events() --- libs/ardour/session_events.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/ardour/session_events.cc b/libs/ardour/session_events.cc index 92b9e88fa6..0208c03cb1 100644 --- a/libs/ardour/session_events.cc +++ b/libs/ardour/session_events.cc @@ -197,8 +197,10 @@ SessionEventManager::merge_event (SessionEvent* ev) case SessionEvent::Clear: _clear_event_type (ev->type); - /* run any additional realtime callback */ - ev->rt_slot (); + /* run any additional realtime callback, if any */ + if (ev->rt_slot) { + ev->rt_slot (); + } if (ev->event_loop) { /* run non-realtime callback (in some other thread) */ ev->event_loop->call_slot (MISSING_INVALIDATOR, boost::bind (ev->rt_return, ev));