mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
prevent use-after-free error
This commit is contained in:
parent
df7ffe1822
commit
750165a251
@ -2844,10 +2844,10 @@ static void xmb_init_ribbon(xmb_handle_t * xmb)
|
||||
coords.lut_tex_coord = dummy;
|
||||
coords.vertices = vertices_total;
|
||||
|
||||
video_coord_array_append(ca, &coords, coords.vertices);
|
||||
|
||||
free(dummy);
|
||||
free(ribbon_verts);
|
||||
|
||||
video_coord_array_append(ca, &coords, coords.vertices);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user