comparison plugin/LADSPAPluginFactory.cpp @ 118:4170b21773cf

* a bit more debug output tidying
author Chris Cannam
date Mon, 15 May 2006 13:04:37 +0000
parents 45175d8c5dc5
children 82f529a08cf3
comparison
equal deleted inserted replaced
117:c30728d5625c 118:4170b21773cf
359 break; 359 break;
360 } 360 }
361 } 361 }
362 362
363 if (!stillInUse) { 363 if (!stillInUse) {
364 std::cerr << "LADSPAPluginFactory::releasePlugin: dll " << soname.toStdString() << " no longer in use, unloading" << std::endl; 364 if (soname != PluginIdentifier::BUILTIN_PLUGIN_SONAME) {
365 unloadLibrary(soname); 365 std::cerr << "LADSPAPluginFactory::releasePlugin: dll " << soname.toStdString() << " no longer in use, unloading" << std::endl;
366 unloadLibrary(soname);
367 }
366 } 368 }
367 369
368 std::cerr << "LADSPAPluginFactory::releasePlugin(" 370 std::cerr << "LADSPAPluginFactory::releasePlugin("
369 << identifier.toStdString() << ": now have " << m_instances.size() << " instances" << std::endl; 371 << identifier.toStdString() << ": now have " << m_instances.size() << " instances" << std::endl;
370 } 372 }
492 if (!stillInUse) toUnload.push_back(i->first); 494 if (!stillInUse) toUnload.push_back(i->first);
493 } 495 }
494 496
495 for (std::vector<QString>::iterator i = toUnload.begin(); 497 for (std::vector<QString>::iterator i = toUnload.begin();
496 i != toUnload.end(); ++i) { 498 i != toUnload.end(); ++i) {
497 unloadLibrary(*i); 499 if (*i != PluginIdentifier::BUILTIN_PLUGIN_SONAME) {
500 unloadLibrary(*i);
501 }
498 } 502 }
499 } 503 }
500 504
501 505
502 // It is only later, after they've gone, 506 // It is only later, after they've gone,