[Win] Avoid NRE in WinFactory.Dispose()
authorthefiddler <stapostol@gmail.com>
Tue, 23 Sep 2014 06:55:02 +0000 (08:55 +0200)
committerthefiddler <stapostol@gmail.com>
Tue, 23 Sep 2014 06:55:02 +0000 (08:55 +0200)
commite621b21c883f453f93b4e9f8790ae43d8cd0f12e
tree055cca5a208b7bceaf98aa39d686896850f32b27
parent7829fa66b72692e7f2be0aeda1dcc9a368181e08
[Win] Avoid NRE in WinFactory.Dispose()

WinFactory.Dispose() could crash with a NRE when the joystick driver has
not been initialized. Fixed by checking for null before disposing the
input driver.
Source/OpenTK/Platform/Windows/WinFactory.cs