SHA256
1
0
forked from pool/rosegarden
rosegarden/rosegarden-fix-crash.patch

14 lines
444 B
Diff

--- a/src/document/RosegardenDocument.cpp
+++ b/src/document/RosegardenDocument.cpp
@@ -947,6 +947,10 @@
Instrument *instrument = m_studio.getInstrumentById(instrumentId);
+ // If this instrument doesn't exist, try the next track.
+ if (!instrument)
+ continue;
+
// If this isn't a MIDI instrument, try the next track.
if (instrument->getType() != Instrument::Midi)
continue;