protected override void Dispose(bool disposing) { cancelSrc?.Dispose(); DirectoryIcon?.Dispose(); if (IconCache != null) { foreach (System.Drawing.Icon i in IconCache.Values) { i.Dispose(); } } if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); }