diff src/haptic/linux/SDL_syshaptic.c @ 2530:22ce87690b41 gsoc2008_force_feedback

More comments. Added support for condition effects on darwin.
author Edgar Simo <bobbens@gmail.com>
date Fri, 18 Jul 2008 18:52:06 +0000
parents 2d88b82ce781
children b4c41a7eea04
line wrap: on
line diff
--- 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;