mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
(Networking) Fix memory leak that could happen at exit after a network
operation has ran (menu_driver_data->core_buf gets allocated inside cb_net_generic_menu and doesn't get freed until the function is ran again
This commit is contained in:
parent
db624a7c99
commit
43000d2e24
@ -3497,6 +3497,10 @@ bool menu_driver_ctl(enum rarch_menu_ctl_state state, void *data)
|
||||
menu_entries_settings_deinit();
|
||||
menu_entries_list_deinit();
|
||||
|
||||
if (menu_driver_data->core_buf)
|
||||
free(menu_driver_data->core_buf);
|
||||
menu_driver_data->core_buf = NULL;
|
||||
|
||||
menu_entries_need_refresh = false;
|
||||
menu_entries_nonblocking_refresh = false;
|
||||
menu_entries_begin = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user