src/haptic/linux/SDL_syshaptic.c
changeset 10209 afd286e26823
parent 10030 061b1b467bd3
child 10617 346c02ff71b6
     1.1 --- a/src/haptic/linux/SDL_syshaptic.c	Wed Jul 20 21:00:52 2016 +0200
     1.2 +++ b/src/haptic/linux/SDL_syshaptic.c	Wed Jul 20 21:01:14 2016 +0200
     1.3 @@ -609,7 +609,7 @@
     1.4          /* Opened and not closed haptics are leaked, this is on purpose.
     1.5           * Close your haptic devices after usage. */
     1.6          SDL_free(item->fname);
     1.7 -        item->fname = NULL;
     1.8 +        SDL_free(item);
     1.9      }
    1.10  
    1.11  #if SDL_USE_LIBUDEV