fix crash at session close/exit if a midi-control-surface is used
authorRobin Gareus <robin@gareus.org>
Thu, 11 Sep 2014 17:29:55 +0000 (19:29 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 11 Sep 2014 17:30:33 +0000 (19:30 +0200)
commitf3f80900f14ae8f8d577f3eb098b5064d4aa0859
tree9be39cf41986f10a099a324b916631c83f8b2c69
parent01974b576995b8a67158fb3d416a1ca8ca224cfd
fix crash at session close/exit if a midi-control-surface is used

The "real" problem was that MidiControlUI is destroyed
while there are still MIDIControllables around that
still have a signal connection to a Controllable:
  controllable->Destroyed(..., MidiControlUI::instance())
If a Contrallable is deleted after the MidiControlUI
event loop is gone, the Destroyed() signal can create odd
situations...
libs/ardour/session.cc
libs/ardour/session_midi.cc