mirror of
https://github.com/libretro/RetroArch
synced 2025-01-26 09:35:21 +00:00
(RMenu/RGUI) Free rgui and filebrowser in upper-layer menu_free() function
This commit is contained in:
parent
bc4bd6b684
commit
5b35feddae
@ -155,7 +155,7 @@ static bool directory_parse(void *data, const char *path)
|
||||
|
||||
}
|
||||
|
||||
void filebrowser_free(void *data)
|
||||
static void filebrowser_free(void *data)
|
||||
{
|
||||
filebrowser_t *filebrowser = (filebrowser_t*)data;
|
||||
|
||||
@ -334,4 +334,10 @@ void menu_init(void)
|
||||
void menu_free(void)
|
||||
{
|
||||
rgui_free(rgui);
|
||||
|
||||
#ifdef HAVE_FILEBROWSER
|
||||
filebrowser_free(rgui->browser);
|
||||
#endif
|
||||
|
||||
free(rgui);
|
||||
}
|
||||
|
@ -230,8 +230,6 @@ void rgui_free(rgui_handle_t *rgui)
|
||||
#ifdef HAVE_DYNAMIC
|
||||
libretro_free_system_info(&rgui->info);
|
||||
#endif
|
||||
|
||||
free(rgui);
|
||||
}
|
||||
|
||||
static uint16_t gray_filler(unsigned x, unsigned y)
|
||||
|
@ -3308,9 +3308,6 @@ void rgui_free(rgui_handle_t *rgui)
|
||||
menu_texture->pixels = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
filebrowser_free(rgui->browser);
|
||||
free(rgui);
|
||||
}
|
||||
|
||||
bool menu_iterate(void)
|
||||
|
@ -1364,7 +1364,6 @@ rgui_handle_t *rgui_init (void)
|
||||
|
||||
void rgui_free (rgui_handle_t *rgui)
|
||||
{
|
||||
filebrowser_free(rgui->browser);
|
||||
app.Uninit();
|
||||
}
|
||||
|
||||
|
@ -52,7 +52,6 @@ typedef enum
|
||||
} filebrowser_action_t;
|
||||
|
||||
void filebrowser_set_root_and_ext(void *data, const char *ext, const char *root_dir);
|
||||
void filebrowser_free(void *data);
|
||||
bool filebrowser_iterate(void *data, unsigned action);
|
||||
|
||||
#endif /* FILEBROWSER_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user