mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 02:30:35 +00:00
Prevent null pointer dereference
This commit is contained in:
parent
61746c8179
commit
44efbd47c2
@ -69,7 +69,11 @@ static void gl_raster_font_free_font(void *data,
|
||||
if (is_threaded)
|
||||
video_context_driver_make_current(true);
|
||||
|
||||
glDeleteTextures(1, &font->tex);
|
||||
if (font->tex)
|
||||
{
|
||||
glDeleteTextures(1, &font->tex);
|
||||
font->tex = 0;
|
||||
}
|
||||
|
||||
free(font);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user