mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 00:32:59 +00:00
[object] Handle mallocation error in set_user_data
Should make bots happy.
This commit is contained in:
parent
548bad221c
commit
cb47dca74c
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ struct hb_lockable_set_t
|
|||
item = items.push (v);
|
||||
l.unlock ();
|
||||
}
|
||||
return item;
|
||||
return items.in_error () ? nullptr : item;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
|
Loading…
Add table
Reference in a new issue