summaryrefslogtreecommitdiff
path: root/libs/ardour/session_events.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-02-05 18:02:57 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2015-02-05 18:03:40 -0500
commit78e245d0b5b4b00c5e3afd45c927bf34250c3950 (patch)
treeb45002696ce219c14e800a953ec8f7ad445853e4 /libs/ardour/session_events.cc
parent7ffc06b08dccdb86498c5a48da3158fcaf923e8b (diff)
do not attempt to call an empty/null boost functor in clear_events()
Diffstat (limited to 'libs/ardour/session_events.cc')
-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));