diff --git a/src/Ryujinx.Input.SDL2/SDL2Mouse.cs b/src/Ryujinx.Input.SDL2/SDL2Mouse.cs index 6dfd75984..37b356b76 100644 --- a/src/Ryujinx.Input.SDL2/SDL2Mouse.cs +++ b/src/Ryujinx.Input.SDL2/SDL2Mouse.cs @@ -83,6 +83,7 @@ namespace Ryujinx.Input.SDL2 public void Dispose() { + GC.SuppressFinalize(this); _driver = null; } } diff --git a/src/Ryujinx.Input.SDL2/SDL2MouseDriver.cs b/src/Ryujinx.Input.SDL2/SDL2MouseDriver.cs index 286164049..768ea8c62 100644 --- a/src/Ryujinx.Input.SDL2/SDL2MouseDriver.cs +++ b/src/Ryujinx.Input.SDL2/SDL2MouseDriver.cs @@ -171,6 +171,7 @@ namespace Ryujinx.Input.SDL2 return; } + GC.SuppressFinalize(this); _isDisposed = true; } } diff --git a/src/Ryujinx.UI.Common/App/ApplicationData.cs b/src/Ryujinx.UI.Common/App/ApplicationData.cs index c2c0d0b4c..b1e346291 100644 --- a/src/Ryujinx.UI.Common/App/ApplicationData.cs +++ b/src/Ryujinx.UI.Common/App/ApplicationData.cs @@ -19,7 +19,7 @@ namespace Ryujinx.UI.App.Common { public class ApplicationData { - public static Func LocalizedNever = () => "Never"; + public static Func LocalizedNever { get; set; } = () => "Never"; public bool Favorite { get; set; } public byte[] Icon { get; set; }