diff --git a/src/plugin/bridges/vst3.cpp b/src/plugin/bridges/vst3.cpp index d8e3f2f3..db9d95b5 100644 --- a/src/plugin/bridges/vst3.cpp +++ b/src/plugin/bridges/vst3.cpp @@ -369,8 +369,8 @@ Steinberg::IPluginFactory* Vst3PluginBridge::get_plugin_factory() { new YaPluginFactoryImpl(*this, std::move(factory_args))); } - // Because we're returning a raw pointer, we have to increas the - // reference count ourselves + // Because we're returning a raw pointer, we have to increase the reference + // count ourselves plugin_factory->addRef(); return plugin_factory; diff --git a/src/plugin/bridges/vst3.h b/src/plugin/bridges/vst3.h index b4841ee6..44a68eb9 100644 --- a/src/plugin/bridges/vst3.h +++ b/src/plugin/bridges/vst3.h @@ -63,9 +63,9 @@ class Vst3PluginBridge : PluginBridge> { /** * When the host loads the module it will call `GetPluginFactory()` which * will in turn call this function. The idea is that we return an - * `IPluginFactory*` while doing all the reference counting that `IPtr` - * would normally do for us ourselves. This means that when the host frees - * its last instance of this factory, `plugin_factory` will also be cleared. + * `IPluginFactory*` that acts as an owned `IPtr`, so we + * have to manually increase the reference count here for every plugin + * factory instance we return. * * @see plugin_factory */