diff --git a/src/hb-object.hh b/src/hb-object.hh index fe44a0b27..e2c2c3394 100644 --- a/src/hb-object.hh +++ b/src/hb-object.hh @@ -69,7 +69,7 @@ struct hb_lockable_set_t item = items.push (v); l.unlock (); } - return item; + return items.in_error () ? nullptr : item; } template