mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-14 20:40:03 +02:00
Implement YaComponentPluginImpl destructor
When the object gets dropped through the reference counting system, the object should also be dropped in the Wine plugin host.
This commit is contained in:
@@ -70,6 +70,13 @@ void Vst3Bridge::run() {
|
||||
return std::nullopt;
|
||||
}
|
||||
},
|
||||
[&](const YaComponent::Destroy& request)
|
||||
-> YaComponent::Destroy::Response {
|
||||
std::lock_guard lock(component_instances_mutex);
|
||||
component_instances.erase(request.instance_id);
|
||||
|
||||
return Ack{};
|
||||
},
|
||||
[&](const WantsPluginFactory&) -> WantsPluginFactory::Response {
|
||||
return *plugin_factory;
|
||||
}});
|
||||
|
||||
Reference in New Issue
Block a user