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:
Robbert van der Helm
2020-12-11 22:59:32 +01:00
parent cdb9dae2df
commit 699ddfd2ea
7 changed files with 51 additions and 6 deletions
+2 -1
View File
@@ -21,7 +21,8 @@ YaComponentPluginImpl::YaComponentPluginImpl(Vst3PluginBridge& bridge,
: YaComponent(std::move(args)), bridge(bridge) {}
YaComponentPluginImpl::~YaComponentPluginImpl() {
// TODO: Send a control message to destroy the instance on the Wine side
bridge.send_message(
YaComponent::Destroy{.instance_id = arguments.instance_id});
}
tresult PLUGIN_API