mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-21 12:49:40 +08:00
text-freetype2: Remove null pointer dereference
This commit is contained in:
@@ -235,7 +235,7 @@ void cache_glyphs(struct ft2_source *srcdata, wchar_t *cache_glyphs)
|
||||
FT_GlyphSlot slot;
|
||||
FT_UInt glyph_index = 0;
|
||||
|
||||
if (!srcdata->font_face)
|
||||
if (!srcdata->font_face || !cache_glyphs)
|
||||
return;
|
||||
|
||||
slot = srcdata->font_face->glyph;
|
||||
|
||||
Reference in New Issue
Block a user