mirror of
https://github.com/Ellpeck/Illumilib.git
synced 2024-12-25 17:19:24 +01:00
don't dispose lighting systems in the destructors
This commit is contained in:
parent
01575ed42d
commit
acffc054bf
3 changed files with 1 additions and 9 deletions
|
@ -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() {}
|
||||
|
||||
}
|
||||
}
|
|
@ -18,7 +18,6 @@ namespace Illumilib.System {
|
|||
}
|
||||
|
||||
public override void Dispose() {
|
||||
base.Dispose();
|
||||
this.ClearBitmap();
|
||||
try {
|
||||
LogitechGsdk.LogiLedShutdown();
|
||||
|
|
|
@ -21,7 +21,6 @@ namespace Illumilib.System {
|
|||
}
|
||||
|
||||
public override void Dispose() {
|
||||
base.Dispose();
|
||||
try {
|
||||
this.chroma?.UninitializeAsync();
|
||||
} catch {
|
||||
|
|
Loading…
Reference in a new issue