Revision 532:569fc23fa37a src/vamp-hostsdk/PluginLoader.cpp
| src/vamp-hostsdk/PluginLoader.cpp | ||
|---|---|---|
| 567 | 567 |
PluginLoader::Impl::pluginDeleted(PluginDeletionNotifyAdapter *adapter) |
| 568 | 568 |
{
|
| 569 | 569 |
void *handle = m_pluginLibraryHandleMap[adapter]; |
| 570 |
if (handle) Files::unloadLibrary(handle); |
|
| 570 |
if (!handle) return; |
|
| 571 |
|
|
| 571 | 572 |
m_pluginLibraryHandleMap.erase(adapter); |
| 573 |
|
|
| 574 |
for (auto h: m_pluginLibraryHandleMap) {
|
|
| 575 |
if (h.second == handle) {
|
|
| 576 |
// still in use |
|
| 577 |
return; |
|
| 578 |
} |
|
| 579 |
} |
|
| 580 |
|
|
| 581 |
Files::unloadLibrary(handle); |
|
| 572 | 582 |
} |
| 573 | 583 |
|
| 574 | 584 |
PluginLoader::Impl::PluginDeletionNotifyAdapter::PluginDeletionNotifyAdapter(Plugin *plugin, |
Also available in: Unified diff