mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-22 19:41:00 +00:00
Merge pull request #182 from thefiddler/win_inputcrash_fix
[Win] Avoid NRE in WinFactory.Dispose()
This commit is contained in:
commit
e06fc9fb0a
|
@ -163,7 +163,12 @@ namespace OpenTK.Platform.Windows
|
|||
{
|
||||
if (manual)
|
||||
{
|
||||
rawinput_driver.Dispose();
|
||||
WinRawInput raw = rawinput_driver;
|
||||
if (raw != null)
|
||||
{
|
||||
raw.Dispose();
|
||||
rawinput_driver = null;
|
||||
}
|
||||
}
|
||||
|
||||
base.Dispose(manual);
|
||||
|
|
Loading…
Reference in a new issue