Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions distrho/src/DistrhoPluginVST3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4800,6 +4800,8 @@ struct dpf_factory : v3_plugin_factory_cpp {
{
dpf_component** const componentptr = new dpf_component*;
*componentptr = new dpf_component(hostApplication);
if (hostApplication != nullptr)
v3_cpp_obj_unref(hostApplication);
*instance = static_cast<void*>(componentptr);
return V3_OK;
}
Expand All @@ -4811,6 +4813,8 @@ struct dpf_factory : v3_plugin_factory_cpp {
{
dpf_edit_controller** const controllerptr = new dpf_edit_controller*;
*controllerptr = new dpf_edit_controller(hostApplication);
if (hostApplication != nullptr)
v3_cpp_obj_unref(hostApplication);
*instance = static_cast<void*>(controllerptr);
return V3_OK;
}
Expand Down