Skip to content

Commit

Permalink
set state off at destruction
Browse files Browse the repository at this point in the history
  • Loading branch information
defiantnerd committed Sep 11, 2023
1 parent 7c1dbd7 commit c1618da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/detail/vst3/os/osutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ class State
State(std::function<void()> on, std::function<void()> off) : _on(on), _off(off)
{
}
~State()
{
off();
}
void on()
{
if (!_state)
Expand Down

0 comments on commit c1618da

Please sign in to comment.