From cc3b2d432b02f9381cdf19e2dd5fbbdd002a750c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 14 Aug 2014 12:59:16 -0400 Subject: [PATCH] Remove this==NULL check from face->reference_table() Not supposed to happen, and apparently this is undefined in C++. https://code.google.com/p/chromium/issues/detail?id=403594 --- src/hb-face-private.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-face-private.hh b/src/hb-face-private.hh index 6520d3dbd..c4266fff4 100644 --- a/src/hb-face-private.hh +++ b/src/hb-face-private.hh @@ -66,7 +66,7 @@ struct hb_face_t { { hb_blob_t *blob; - if (unlikely (!this || !reference_table_func)) + if (unlikely (!reference_table_func)) return hb_blob_get_empty (); blob = reference_table_func (/*XXX*/const_cast (this), tag, user_data);