This fixes a crash cleaning up gamepads at exit. You have to combine this with #2175 to get rid of the out of bounds issues. Then the issue remaining is just trying to close an already closed joystick if you already unplugged the joystick. All I had to do here was null the pointers and check if they are null like a good developer.
>Codecov ReportPlease sign in to post comments, or you can view this issue on GitHub.
@@ Coverage Diff @@ ## master #2172 +/- ## ========================================== - Coverage 32.89% 32.88% -0.01% ========================================== Files 197 197 Lines 19062 19065 +3 ========================================== Hits 6270 6270 - Misses 12792 12795 +3
|Impacted Files||Coverage Δ|