Fix occasional MIDI read crash.
authorDavid Robillard <d@drobilla.net>
Sun, 28 Dec 2014 20:14:47 +0000 (15:14 -0500)
committerDavid Robillard <d@drobilla.net>
Sun, 28 Dec 2014 21:06:44 +0000 (16:06 -0500)
commitec947ff8fd2cf229284f757b8bd6b0f96cbd6383
tree4e75e57f37e3b3539abb12908e6fc50e078c7e6e
parentdbc2f59453af4d22532360393c0fa858d257f5a6
Fix occasional MIDI read crash.

Locking should prevent this from being a problem, but taking a reference to the
cached iterator and mutating it directly causes occasional crashes for me for
reasons I can't quite figure out.

This fixes the issue and is arguably more sane anyway, so whatever.
libs/ardour/midi_source.cc