mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-10 21:10:15 +00:00
Merge pull request #1551 from heuripedes/master
(XMB) Fix memory corruption
This commit is contained in:
commit
90f97a725f
@ -1525,11 +1525,13 @@ static void xmb_free(void *data)
|
||||
font_driver = (const struct gl_font_renderer*)gl->font_driver;
|
||||
|
||||
if (menu && menu->userdata)
|
||||
{
|
||||
xmb = (xmb_handle_t*)menu->userdata;
|
||||
gl_coord_array_release(&xmb->raster_block.carr);
|
||||
|
||||
free(menu->userdata);
|
||||
|
||||
xmb = (xmb_handle_t*)menu->userdata;
|
||||
|
||||
gl_coord_array_release(&xmb->raster_block.carr);
|
||||
menu->userdata = NULL;
|
||||
}
|
||||
|
||||
if (font_driver->bind_block)
|
||||
font_driver->bind_block(gl->font_handle, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user