Cleanup joystick deallocation.
[freeglut] / freeglut-1.3 / freeglut_joystick.c
index 8619b79..5012dfc 100644 (file)
@@ -544,6 +544,7 @@ void fgJoystickClose( void )
 #endif
 
     free ( fgJoystick ) ;
+    fgJoystick = NULL ;
 }
 
 /*