Skip to content

Commit

Permalink
frame->close in ~SurgeGUIEditor
Browse files Browse the repository at this point in the history
Call frame->close which does a removeAll and a forget, like we
used to, but also does a bunch of other internal implementations.
Reported by @sagantech. Reading the vstgui code for close this
is obviously correct.

Closes surge-synthesizer#503 call close
  • Loading branch information
baconpaul committed Feb 26, 2019
1 parent 14a9390 commit 4246136
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/common/gui/SurgeGUIEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,7 @@ SurgeGUIEditor::~SurgeGUIEditor()
if (frame)
{
getFrame()->unregisterKeyboardHook(this);
frame->removeAll(true);
frame->forget();
frame->close();
}
}

Expand Down

0 comments on commit 4246136

Please sign in to comment.