src/joystick/android/SDL_sysjoystick.c
changeset 10274 3501018c6df2
parent 10082 e1e10dfb04ad
child 10278 74c39dbe8d30
--- a/src/joystick/android/SDL_sysjoystick.c	Mon Aug 08 12:17:53 2016 -0700
+++ b/src/joystick/android/SDL_sysjoystick.c	Wed Aug 17 21:04:32 2016 +0200
@@ -538,6 +538,8 @@
 void
 SDL_SYS_JoystickClose(SDL_Joystick * joystick)
 {
+    SDL_joylist_item *item = (SDL_joylist_item *) joystick->hwdata;
+    item->joystick = NULL;
 }
 
 /* Function to perform any system-specific joystick related cleanup */