mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-28 17:19:17 +01:00
Don't lock user_data set during destruction if empty
This commit is contained in:
1 parent
4ba647eecf
commit
3f4764bb56
1 file changed
+5
@@ -442,6 +442,11 @@ struct hb_lockable_set_t
|
||||
|
||||
inline void finish (lock_t &l)
|
||||
{
|
||||
if (!items.len) {
|
||||
/* No need for locking. */
|
||||
items.finish ();
|
||||
return;
|
||||
}
|
||||
l.lock ();
|
||||
while (items.len) {
|
||||
item_t old = items[items.len - 1];
|
||||
|
||||
Reference in new issue
Block a user