summaryrefslogtreecommitdiff
path: root/pango/pango-ot-info.c
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2014-02-12 18:39:27 +0900
committerAkira TAGOH <akira@tagoh.org>2014-02-13 12:03:03 +0900
commit44d90b5771bf08e0e900596eb3a4db78c10d7f23 (patch)
treeecd23e872c738466cdb0204095d4fe355a58496f /pango/pango-ot-info.c
parentd8e2dc00c8d28e1bf8b443208497ce1ab25e0af4 (diff)
downloadpango-44d90b5771bf08e0e900596eb3a4db78c10d7f23.tar.gz
Avoid a crash when FT_Face is null
https://bugzilla.gnome.org/show_bug.cgi?id=724006
Diffstat (limited to 'pango/pango-ot-info.c')
-rw-r--r--pango/pango-ot-info.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/pango-ot-info.c b/pango/pango-ot-info.c
index f6dc1ac0..d494d7f4 100644
--- a/pango/pango-ot-info.c
+++ b/pango/pango-ot-info.c
@@ -88,6 +88,9 @@ pango_ot_info_get (FT_Face face)
{
PangoOTInfo *info;
+ if (G_UNLIKELY (!face))
+ return NULL;
+
if (G_LIKELY (face->generic.data && face->generic.finalizer == pango_ot_info_finalizer))
return face->generic.data;
else