--- linuxsampler/trunk/src/engines/gig/InstrumentResourceManager.cpp 2007/10/19 17:52:15 1454 +++ linuxsampler/trunk/src/engines/gig/InstrumentResourceManager.cpp 2007/10/21 11:59:59 1455 @@ -168,8 +168,10 @@ InstrumentEditorProxiesMutex.Unlock(); std::cerr << "Eeeek, could not find instrument editor proxy, this is a bug!\n" << std::flush; } - // free the editor - InstrumentEditorFactory::Destroy(pSender); + + // Note that we don't need to free the editor here. As it + // derives from Thread, it will delete itself when the thread + // dies. } void InstrumentResourceManager::OnSamplesToBeRemoved(std::set Samples, InstrumentEditor* pSender) {