mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-17 14:47:19 +01:00
Linux: Fixed memory leak in haptic implementation (thanks, Martin!).
Fixes Bugzilla #3238.
This commit is contained in:
parent
8d6cbdd235
commit
4743b55c7a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user