Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add more Dispose methods to options panels to prevent hang on shutdown

  • Loading branch information...
commit d4cb8d6e5a6503a6a148e5619fbb0bf614d87a4a 1 parent d902e06
Scott Stephens authored

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. +8 0 src/FSharpOptionsPanels.fs
8 src/FSharpOptionsPanels.fs
@@ -114,6 +114,10 @@ type CodeGenerationPanel() =
114 114 inherit MultiConfigItemOptionsPanel()
115 115 let mutable widget : FSharpCompilerOptionsWidget = null
116 116
  117 + override x.Dispose() =
  118 + if widget <> null then
  119 + widget.Dispose()
  120 +
117 121 override x.CreatePanelWidget() =
118 122 widget <- new FSharpCompilerOptionsWidget()
119 123 widget.Show()
@@ -162,6 +166,10 @@ type BuildOrderPanel() =
162 166 let cell = new Gtk.CellRendererText();
163 167 col.PackStart(cell, true);
164 168 col.AddAttribute(cell, "text", 0);
  169 +
  170 + override x.Dispose() =
  171 + if widget <> null then
  172 + widget.Dispose()
165 173
166 174 override x.LoadConfigData() =
167 175 let config = x.CurrentConfiguration :?> DotNetProjectConfiguration

0 comments on commit d4cb8d6

Please sign in to comment.
Something went wrong with that request. Please try again.