(XDK1 RMenu) Free up tmpBrowser for every switch between game and menu as well
This commit is contained in:
parent
c0f9c0dc6f
commit
4fa02a1952
|
@ -3093,6 +3093,8 @@ bool menu_iterate(void)
|
||||||
|
|
||||||
#ifndef __CELLOS_LV2__
|
#ifndef __CELLOS_LV2__
|
||||||
rmenu_gfx_init();
|
rmenu_gfx_init();
|
||||||
|
tmpBrowser = (filebrowser_t*)filebrowser_init(default_paths.filesystem_root_dir, "");
|
||||||
|
filebrowser_set_root_and_ext(tmpBrowser, NULL, default_paths.filesystem_root_dir);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
g_extern.lifecycle_mode_state &= ~(1ULL << MODE_MENU_PREINIT);
|
g_extern.lifecycle_mode_state &= ~(1ULL << MODE_MENU_PREINIT);
|
||||||
|
@ -3284,6 +3286,7 @@ deinit:
|
||||||
|
|
||||||
#ifdef _XBOX1
|
#ifdef _XBOX1
|
||||||
rmenu_gfx_free();
|
rmenu_gfx_free();
|
||||||
|
filebrowser_free(tmpBrowser);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue