# HG changeset patch # User sl # Date 1422094768 -3600 # Node ID 7e529cdd33913db6343f14bad58b474d0af250e6 # Parent c7e8e88e1d756cbd7d385b75147f5044deb27629 Now properly disposing of tray icon on exit. diff -r c7e8e88e1d75 -r 7e529cdd3391 Server/MainForm.Designer.cs --- a/Server/MainForm.Designer.cs Sat Jan 24 09:31:09 2015 +0100 +++ b/Server/MainForm.Designer.cs Sat Jan 24 11:19:28 2015 +0100 @@ -13,9 +13,18 @@ /// true if managed resources should be disposed; otherwise, false. protected override void Dispose(bool disposing) { - if (disposing && (components != null)) + if (disposing) { - components.Dispose(); + if (iNotifyIcon != null) + { + iNotifyIcon.Dispose(); + iNotifyIcon = null; + } + + if (components != null) + { + components.Dispose(); + } } base.Dispose(disposing); }