Fixed the last minimize -> maximize memory leak.

This commit is contained in:
larsbrubaker 2014-10-25 20:38:12 -07:00
parent 0d454acd9f
commit e05ab1e7f0

View file

@ -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;