(glcore) Fix heap use after free

This commit is contained in:
twinaphex 2020-08-03 12:15:52 +02:00
parent cb8b2db3ad
commit 76398f4151

View File

@ -1541,10 +1541,10 @@ static void gl_core_free(void *data)
gl_core_context_bind_hw_render(gl, false);
font_driver_free_osd();
gl_core_destroy_resources(gl);
if (gl->ctx_driver && gl->ctx_driver->destroy)
gl->ctx_driver->destroy(gl->ctx_data);
video_context_driver_free();
gl_core_destroy_resources(gl);
}
static bool gl_core_alive(void *data)