SIL.FieldWorks.FwCoreDlgs.CharContextCtrl.Dispose C# (CSharp) Method

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void
		protected override void Dispose(bool disposing)
		{
			System.Diagnostics.Debug.WriteLineIf(!disposing, "****** Missing Dispose() call for " + GetType().Name + ". ****** ");
			if (disposing)
			{
				if (components != null)
					components.Dispose();
				if (m_openFileDialog != null)
					m_openFileDialog.Dispose();

				if (m_charPropEng != null && Marshal.IsComObject(m_charPropEng))
					Marshal.ReleaseComObject(m_charPropEng);
			}
			components = null;
			m_openFileDialog = null;
			m_charPropEng = null;
			base.Dispose(disposing);
		}