src/haptic/linux/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2474 3f80bf1528b4
parent 2472 3f73c88c9abb
child 2475 4b874e3a3a2c
--- a/src/haptic/linux/SDL_syshaptic.c	Sun Jun 01 18:40:47 2008 +0000
+++ b/src/haptic/linux/SDL_syshaptic.c	Sun Jun 01 18:46:51 2008 +0000
@@ -182,4 +182,17 @@
 }
 
 
+/* Clean up after system specific haptic stuff */
+void
+SDL_SYS_HapticQuit(void)
+{
+   int i;
+
+   for (i=0; SDL_hapticlist[i].fname != NULL; i++) {
+      SDL_free(SDL_hapticlist[i].fname);
+   }
+   SDL_hapticlist[0].fname = NULL;
+}
+
+
 #endif /* SDL_HAPTIC_LINUX */