mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-20 09:34:09 +00:00
(XBM) Fix font leak
This commit is contained in:
parent
c99cd21080
commit
d52a1b20e3
@ -1981,6 +1981,7 @@ static void xmb_context_destroy(void)
|
||||
unsigned i;
|
||||
xmb_handle_t *xmb = NULL;
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
driver_t *driver = driver_get_ptr();
|
||||
|
||||
if (!menu)
|
||||
return;
|
||||
@ -2004,6 +2005,9 @@ static void xmb_context_destroy(void)
|
||||
glDeleteTextures(1, &node->icon);
|
||||
glDeleteTextures(1, &node->content_icon);
|
||||
}
|
||||
|
||||
if (menu->font.buf)
|
||||
driver->font_osd_driver->free(menu->font.buf);
|
||||
}
|
||||
|
||||
static void xmb_toggle(bool menu_on)
|
||||
|
Loading…
x
Reference in New Issue
Block a user