Fixed the last minimize -> maximize memory leak.
This commit is contained in:
parent
0d454acd9f
commit
e05ab1e7f0
1 changed files with 10 additions and 1 deletions
|
|
@ -149,7 +149,16 @@ namespace MatterHackers.MatterControl.ConfigurationPage
|
|||
return buttonRow;
|
||||
}
|
||||
|
||||
private FlowLayoutWidget GetGcodeTerminalControl()
|
||||
public override void OnClosed(EventArgs e)
|
||||
{
|
||||
if (unregisterEvents != null)
|
||||
{
|
||||
unregisterEvents(this, null);
|
||||
}
|
||||
base.OnClosed(e);
|
||||
}
|
||||
|
||||
private FlowLayoutWidget GetGcodeTerminalControl()
|
||||
{
|
||||
FlowLayoutWidget buttonRow = new FlowLayoutWidget();
|
||||
buttonRow.HAnchor = HAnchor.ParentLeftRight;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue