commit | cb47dca74cbf6d147aac9cf3067f249555aa68b1 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Sun Jan 29 10:03:52 2023 -0700 |
committer | Behdad Esfahbod <behdad@behdad.org> | Sun Jan 29 10:57:29 2023 -0700 |
tree | 44c7a86323aa07b95d39fa18d76d75c46ee3c0f9 | |
parent | 548bad221c6ba8a82fc3387923ca0382d183ab5e [diff] |
[object] Handle mallocation error in set_user_data Should make bots happy.
diff --git a/src/hb-object.hh b/src/hb-object.hh index fe44a0b..e2c2c33 100644 --- a/src/hb-object.hh +++ b/src/hb-object.hh
@@ -69,7 +69,7 @@ item = items.push (v); l.unlock (); } - return item; + return items.in_error () ? nullptr : item; } template <typename T>