mirror of
https://github.com/libretro/RetroArch
synced 2025-02-14 06:40:48 +00:00
dinput: fix memory leak of joypad name
This commit is contained in:
parent
4d21a77d9b
commit
4c9bde61b5
@ -852,7 +852,7 @@ static void dinput_free(void *data)
|
|||||||
if (di->mouse)
|
if (di->mouse)
|
||||||
IDirectInputDevice8_Release(di->mouse);
|
IDirectInputDevice8_Release(di->mouse);
|
||||||
|
|
||||||
if (string_is_empty(di->joypad_driver_name))
|
if (di->joypad_driver_name)
|
||||||
free(di->joypad_driver_name);
|
free(di->joypad_driver_name);
|
||||||
|
|
||||||
free(di);
|
free(di);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user