mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +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;
|
unsigned i;
|
||||||
xmb_handle_t *xmb = NULL;
|
xmb_handle_t *xmb = NULL;
|
||||||
menu_handle_t *menu = menu_driver_get_ptr();
|
menu_handle_t *menu = menu_driver_get_ptr();
|
||||||
|
driver_t *driver = driver_get_ptr();
|
||||||
|
|
||||||
if (!menu)
|
if (!menu)
|
||||||
return;
|
return;
|
||||||
@ -2004,6 +2005,9 @@ static void xmb_context_destroy(void)
|
|||||||
glDeleteTextures(1, &node->icon);
|
glDeleteTextures(1, &node->icon);
|
||||||
glDeleteTextures(1, &node->content_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)
|
static void xmb_toggle(bool menu_on)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user