diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2015-06-17 00:13:34 +0300 |
---|---|---|
committer | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2015-06-17 00:40:42 +0300 |
commit | be00174229b0115a88688e639171a98381b20cf8 (patch) | |
tree | 86634eeb9abaa2aa3512cb5f94652ec8a76bdb1d /main/src/addins/MonoDevelop.Autotools | |
parent | fc3170531a206bddcf4e6011cccfe4a879fa30fa (diff) |
[Misc] 1/4 batch of checking disposes of dialogs.
Diffstat (limited to 'main/src/addins/MonoDevelop.Autotools')
-rw-r--r-- | main/src/addins/MonoDevelop.Autotools/TarballBuilderEditorWidget.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/main/src/addins/MonoDevelop.Autotools/TarballBuilderEditorWidget.cs b/main/src/addins/MonoDevelop.Autotools/TarballBuilderEditorWidget.cs index edd2eebbdd..ac60b13b23 100644 --- a/main/src/addins/MonoDevelop.Autotools/TarballBuilderEditorWidget.cs +++ b/main/src/addins/MonoDevelop.Autotools/TarballBuilderEditorWidget.cs @@ -80,9 +80,10 @@ namespace MonoDevelop.Autotools protected virtual void OnAutofooPropertiesClicked (object sender, System.EventArgs e) { - MakefileSwitchEditor editor = new MakefileSwitchEditor (target); - editor.ShowAll (); - MonoDevelop.Ide.MessageService.ShowCustomDialog (editor, this.Toplevel as Gtk.Window); + using (MakefileSwitchEditor editor = new MakefileSwitchEditor (target)) { + editor.ShowAll (); + MonoDevelop.Ide.MessageService.ShowCustomDialog (editor, this.Toplevel as Gtk.Window); + } } } } |