Drop IPlugView pointer when host drops proxy

This commit is contained in:
Robbert van der Helm
2020-12-19 22:17:10 +01:00
parent b7047a5281
commit 7306809991
6 changed files with 40 additions and 6 deletions
@@ -22,11 +22,10 @@ Vst3PlugViewProxyImpl::Vst3PlugViewProxyImpl(
: Vst3PlugViewProxy(std::move(args)), bridge(bridge) {}
Vst3PlugViewProxyImpl::~Vst3PlugViewProxyImpl() {
// TODO: Implement this:
// // Also drop the plug view smart pointer on the Wine side when this gets
// // dropped
// bridge.send_message(
// Vst3PlugViewProxy::Destruct{.instance_id = instance_id()});
// Also drop the plug view smart pointer on the Wine side when this gets
// dropped
bridge.send_message(
Vst3PlugViewProxy::Destruct{.owner_instance_id = owner_instance_id()});
}
tresult PLUGIN_API