Linux: Fixed memory leak in haptic implementation (thanks, Martin!).
Fixes Bugzilla #3238.
This commit is contained in:
parent
437ec0ab40
commit
1d6a32758b
1 changed files with 1 additions and 1 deletions
|
@ -609,7 +609,7 @@ SDL_SYS_HapticQuit(void)
|
||||||
/* Opened and not closed haptics are leaked, this is on purpose.
|
/* Opened and not closed haptics are leaked, this is on purpose.
|
||||||
* Close your haptic devices after usage. */
|
* Close your haptic devices after usage. */
|
||||||
SDL_free(item->fname);
|
SDL_free(item->fname);
|
||||||
item->fname = NULL;
|
SDL_free(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if SDL_USE_LIBUDEV
|
#if SDL_USE_LIBUDEV
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue