/// <summary> /// Releases resources associated with the object. /// </summary> /// <param name="disposing">true if the object is being disposed; false if the object is being finalized.</param> protected override void Dispose(Boolean disposing) { if (!BASSNative.Free()) { throw new BASSException(); } if (disposing && !Ultraviolet.Disposed) { Ultraviolet.Messages.Unsubscribe(this); } base.Dispose(disposing); }