prevent use-after-free error

This commit is contained in:
Brad Parker 2016-11-17 21:17:24 -05:00
parent df7ffe1822
commit 750165a251

View File

@ -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);
}