public override void Close() { _fanControl.ControlModeChanged -= ControlModeChanged; _fanControl.SoftwareControlValueChanged -= SoftwareControlValueChanged; if (_fanControl.ControlMode != ControlMode.Undefined) { SetDefaultFanSpeed(); } if (_context != IntPtr.Zero) { AtiAdlxx.ADL2_Main_Control_Destroy(_context); } base.Close(); }
public override void Close() { _fanControl.ControlModeChanged -= ControlModeChanged; _fanControl.SoftwareControlValueChanged -= SoftwareControlValueChanged; if (_fanControl.ControlMode != ControlMode.Undefined) { SetDefaultFanSpeed(); } if (_frameMetricsStarted) { AtiAdlxx.ADL2_Adapter_FrameMetrics_Stop(_context, _adapterIndex, 0); } if (_context != IntPtr.Zero) { AtiAdlxx.ADL2_Main_Control_Destroy(_context); } base.Close(); }