Linux: Fixed memory leak in haptic implementation (thanks, Martin!).
authorPhilipp Wiesemann
Wed, 20 Jul 2016 21:01:14 +0200
changeset 10209afd286e26823
parent 10208 49c460371a4a
child 10210 1b5a21b3fa97
Linux: Fixed memory leak in haptic implementation (thanks, Martin!).

Fixes Bugzilla #3238.
src/haptic/linux/SDL_syshaptic.c
     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