diff --git a/Illumilib/System/LightingSystem.cs b/Illumilib/System/LightingSystem.cs index 0adf140..468d098 100644 --- a/Illumilib/System/LightingSystem.cs +++ b/Illumilib/System/LightingSystem.cs @@ -5,10 +5,6 @@ namespace Illumilib.System { public abstract LightingType Type { get; } - ~LightingSystem() { - this.Dispose(); - } - public abstract bool Initialize(); public abstract void SetAllLighting(float r, float g, float b); @@ -23,9 +19,7 @@ namespace Illumilib.System { public abstract void SetMouseLighting(float r, float g, float b); - public virtual void Dispose() { - GC.SuppressFinalize(this); - } + public virtual void Dispose() {} } } \ No newline at end of file diff --git a/Illumilib/System/LogitechLighting.cs b/Illumilib/System/LogitechLighting.cs index 413427b..3206079 100644 --- a/Illumilib/System/LogitechLighting.cs +++ b/Illumilib/System/LogitechLighting.cs @@ -18,7 +18,6 @@ namespace Illumilib.System { } public override void Dispose() { - base.Dispose(); this.ClearBitmap(); try { LogitechGsdk.LogiLedShutdown(); diff --git a/Illumilib/System/RazerLighting.cs b/Illumilib/System/RazerLighting.cs index 618836a..9fc23a9 100644 --- a/Illumilib/System/RazerLighting.cs +++ b/Illumilib/System/RazerLighting.cs @@ -21,7 +21,6 @@ namespace Illumilib.System { } public override void Dispose() { - base.Dispose(); try { this.chroma?.UninitializeAsync(); } catch {