--- linuxsampler/trunk/src/engines/gig/EngineChannel.cpp 2009/02/23 18:29:50 1844 +++ linuxsampler/trunk/src/engines/gig/EngineChannel.cpp 2009/02/27 17:12:40 1847 @@ -321,6 +321,15 @@ cmd.bChangeInstrument = false; } + if (pInstrument != NULL) { + pInstrument = NULL; + InstrumentStat = -1; + InstrumentIdx = -1; + InstrumentIdxName = ""; + InstrumentFile = ""; + bStatusChanged = true; + } + for (uint i = 0; i < 128; i++) { pMIDIKeyInfo[i].pActiveVoices = new RTList(pEngine->pVoicePool); pMIDIKeyInfo[i].pEvents = new RTList(pEngine->pEventPool);