Merge pull request #182 from thefiddler/win_inputcrash_fix

[Win] Avoid NRE in WinFactory.Dispose()
This commit is contained in:
thefiddler 2014-09-23 10:21:25 +02:00
commit e06fc9fb0a

View file

@ -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);