From ce99829d01f0ed07fdf19dba9105c34658e882c4 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Mon, 10 Nov 2014 01:16:39 -0800 Subject: [PATCH] text-freetype2: Remove null pointer dereference --- plugins/text-freetype2/text-functionality.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/text-freetype2/text-functionality.c b/plugins/text-freetype2/text-functionality.c index 15e816d08..40c4c0079 100644 --- a/plugins/text-freetype2/text-functionality.c +++ b/plugins/text-freetype2/text-functionality.c @@ -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;