summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/ardour/session_events.cc6
1 files 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));