Skip to content

Commit

Permalink
vst3: fix a potential crash on closing a vst with an open window
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Jan 4, 2025
1 parent 8d3dc6e commit 223ccaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/score-plugin-vst3/Vst3/Plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ void Plugin::stop()

if(plugFrame)
{
QTimer::singleShot(100, [=] { delete plugFrame; });
QTimer::singleShot(100, [ptr = plugFrame] { delete ptr; });
}
}

Expand Down

0 comments on commit 223ccaa

Please sign in to comment.