(glcore) Fix heap use after free
This commit is contained in:
parent
cb8b2db3ad
commit
76398f4151
|
@ -1541,10 +1541,10 @@ static void gl_core_free(void *data)
|
||||||
|
|
||||||
gl_core_context_bind_hw_render(gl, false);
|
gl_core_context_bind_hw_render(gl, false);
|
||||||
font_driver_free_osd();
|
font_driver_free_osd();
|
||||||
gl_core_destroy_resources(gl);
|
|
||||||
if (gl->ctx_driver && gl->ctx_driver->destroy)
|
if (gl->ctx_driver && gl->ctx_driver->destroy)
|
||||||
gl->ctx_driver->destroy(gl->ctx_data);
|
gl->ctx_driver->destroy(gl->ctx_data);
|
||||||
video_context_driver_free();
|
video_context_driver_free();
|
||||||
|
gl_core_destroy_resources(gl);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool gl_core_alive(void *data)
|
static bool gl_core_alive(void *data)
|
||||||
|
|
Loading…
Reference in New Issue