From bb6ffe4891f0e56253bb1257c152cf9cd7be9ef6 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Thu, 12 Mar 2020 23:16:59 +0100 Subject: [PATCH] Fix crashes on startup in Bitwig's bridge --- src/plugin/host-bridge.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugin/host-bridge.cpp b/src/plugin/host-bridge.cpp index 8bf42612..2b2815ff 100644 --- a/src/plugin/host-bridge.cpp +++ b/src/plugin/host-bridge.cpp @@ -69,6 +69,10 @@ HostBridge& get_bridge_instance(const AEffect& plugin) { HostBridge::HostBridge(audioMasterCallback host_callback) : vst_host_path(find_wine_vst_host()), vst_plugin_path(find_vst_plugin()), + // All the fields should be zero initialized because + // `Vst2PluginInstance::vstAudioMasterCallback` from Bitwig's plugin + // bridge will crash otherwise + plugin(), io_context(), socket_endpoint(generate_endpoint_name().string()), socket_acceptor(io_context, socket_endpoint),