diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-03-16 21:28:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-16 21:28:00 +0100 |
commit | a6066c5e42765a8b41f3e331ffa080ddc9624641 (patch) | |
tree | 1a1ddbfb1df077a1f57b1fe9f49e4f646e6c2c60 /thirdparty/harfbuzz/src/hb-serialize.hh | |
parent | d71c9f00050ce08917c06c2ec235bc09ea52f5a7 (diff) | |
parent | b79e8c22f09456e0c0fbcc9ccc5de6b3d54f6476 (diff) |
Merge pull request #47072 from bruvzg/hb_2_8_0
HarfBuzz: Update to version 2.8.0
Diffstat (limited to 'thirdparty/harfbuzz/src/hb-serialize.hh')
-rw-r--r-- | thirdparty/harfbuzz/src/hb-serialize.hh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/thirdparty/harfbuzz/src/hb-serialize.hh b/thirdparty/harfbuzz/src/hb-serialize.hh index 4566153a59..fe29bdf96e 100644 --- a/thirdparty/harfbuzz/src/hb-serialize.hh +++ b/thirdparty/harfbuzz/src/hb-serialize.hh @@ -256,10 +256,11 @@ struct hb_serialize_context_t packed.push (obj); - if (unlikely (packed.in_error ())) { - // obj wasn't successfully added to packed, so clean it up otherwise it's - // links will be leaked. - propagate_error (packed); + if (unlikely (!propagate_error (packed))) + { + /* Obj wasn't successfully added to packed, so clean it up otherwise its + * links will be leaked. When we use constructor/destructors properly, we + * can remove these. */ obj->fini (); return 0; } @@ -523,7 +524,7 @@ struct hb_serialize_context_t template <typename T> void assign_offset (const object_t* parent, const object_t::link_t &link, unsigned offset) { - auto &off = * ((BEInt<T, sizeof (T)> *) (parent->head + link.position)); + auto &off = * ((BEInt<T> *) (parent->head + link.position)); assert (0 == off); check_assign (off, offset); } |