Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Linux: Fixed memory leak in haptic implementation (thanks, Martin!).
Fixes Bugzilla #3238.
  • Loading branch information
philippwiesemann committed Jul 20, 2016
1 parent 8d6cbdd commit 4743b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/haptic/linux/SDL_syshaptic.c
Expand Up @@ -609,7 +609,7 @@ SDL_SYS_HapticQuit(void)
/* Opened and not closed haptics are leaked, this is on purpose.
* Close your haptic devices after usage. */
SDL_free(item->fname);
item->fname = NULL;
SDL_free(item);
}

#if SDL_USE_LIBUDEV
Expand Down

0 comments on commit 4743b55

Please sign in to comment.