ad49de022ad63161623d2661ba66861dda243d57
This fixes a random crash with stop-and-forget capture. When aborting capture, the disk-writer can emit midi_write_source->drop_references () in the butler thread, which leads to a direct call to Session::remove_source. This can happen before or after Region::source_deleted is called which is initiated from the same signal. Furthermore it was possible that Region::source deleted was called concurrently from the UI thread via SourceRemoved for whole file regions, which lead to memory corruption.
Please see the Ardour web site at https://ardour.org/ for all documentation..
For information on building ardour:
https://ardour.org/development.html
Description
Languages
C++
56.5%
C
39.6%
JavaScript
1.3%
Lua
0.9%
Python
0.6%
Other
0.9%