Fix crash when cleaning up w/o destroying session
authorRobin Gareus <robin@gareus.org>
Thu, 3 Aug 2017 16:43:12 +0000 (18:43 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 3 Aug 2017 17:25:14 +0000 (19:25 +0200)
commitd0c934a9de31df9ea0f6046fa074ea9fe17e8b07
treec9ce0b7f8ad5e363f3bd35eafd602aaa07af1d7c
parent81f12f602bf40b3801b1bb9162fd0737ecc6782d
Fix crash when cleaning up w/o destroying session

- Control-protocols may transmit data during cleanup
 (e.g. reset surface), and need the Audio-engine to do so.
- destroying the ControlProtocolManager w/o the Session calling
 ::drop_protocols(), lead to a double free.
libs/ardour/control_protocol_manager.cc
libs/ardour/globals.cc