mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-16 13:40:05 +02:00
Destroy IPlugFrame proxy together with IPlugView
Not that we have implemented `IPlugView::setFrame()` yet, but that should be trivial at this point.
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
|
||||
#include "vst3-impls/component-handler-proxy.h"
|
||||
#include "vst3-impls/host-context-proxy.h"
|
||||
#include "vst3-impls/plug-frame-proxy.h"
|
||||
|
||||
InstanceInterfaces::InstanceInterfaces() {}
|
||||
|
||||
@@ -70,9 +71,13 @@ void Vst3Bridge::run() {
|
||||
main_context
|
||||
.run_in_context([&]() {
|
||||
// When the pointer gets dropped by the host, we want to
|
||||
// drop it here as well
|
||||
// drop it here as well, along with the `IPlugFrame`
|
||||
// proxy object it may have received in
|
||||
// `IPlugView::setFrame()`.
|
||||
object_instances[request.owner_instance_id]
|
||||
.plug_view.reset();
|
||||
object_instances[request.owner_instance_id]
|
||||
.plug_frame_proxy.reset();
|
||||
})
|
||||
.wait();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user