void PluginAdapterBase::Impl::vampCleanup(VampPluginHandle handle) { #ifdef DEBUG_PLUGIN_ADAPTER std::cerr << "PluginAdapterBase::Impl::vampCleanup(" << handle << ")" << std::endl; #endif Impl *adapter = lookupAdapter(handle); if (!adapter) { delete ((Plugin *)handle); return; } adapter->cleanup(((Plugin *)handle)); }