Fix some more crashes at session-close
authorRobin Gareus <robin@gareus.org>
Tue, 1 Aug 2017 21:27:34 +0000 (23:27 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 1 Aug 2017 21:27:34 +0000 (23:27 +0200)
commit1a288ddd952752e9fdf528eb5d135f0af7dd6f73
tree0a6d7c37c703f3c10a85cb1486b5dcd1b853dcaa
parent9694986a85da8e7d18e9003e3706939bf4e34097
Fix some more crashes at session-close

PortDrop unregisters backend ports, the backend will return a NULL
buffer-pointer, but the I/O object still exists (Metronome, LTC)

AudioBuffer::_data == 0

#0  msvcrt!memset () from C:\Windows\System32\msvcrt.dll
#1  ARDOUR::AudioBuffer::silence (this=0x2c410710, len=256, offset=0) at ../libs/ardour/audio_buffer.cc:88
#2  ARDOUR::AudioPort::cycle_end (this=0x34918730, nframes=256) at ../libs/ardour/audio_port.cc:66
#3  ARDOUR::PortManager::cycle_end (this=this@entry=0x23342770, nframes=nframes@entry=256)
[process callback w/o session]
libs/ardour/session.cc
libs/ardour/session_ltc.cc