src/haptic/linux/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2530 22ce87690b41
parent 2526 2d88b82ce781
child 2539 b4c41a7eea04
--- a/src/haptic/linux/SDL_syshaptic.c	Fri Jul 18 08:06:57 2008 +0000
+++ b/src/haptic/linux/SDL_syshaptic.c	Fri Jul 18 18:52:06 2008 +0000
@@ -445,6 +445,9 @@
    int i;
 
    for (i=0; SDL_hapticlist[i].fname != NULL; i++) {
+      /* Opened and not closed haptics are leaked, this is on purpose.
+       * Close your haptic devices after usage. */
+
       SDL_free(SDL_hapticlist[i].fname);
    }
    SDL_hapticlist[0].fname = NULL;