[subset] fix incorrectly specified lock.

Lock variable must have a name or it will immediately destruct.
This commit is contained in:
Garret Rieger 2023-03-17 00:58:58 +00:00 committed by Behdad Esfahbod
parent 8d8bcde8cf
commit 79233a1492
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ struct hb_subset_plan_t
template<typename T>
hb_blob_ptr_t<T> source_table()
{
hb_lock_t (accelerator ? &accelerator->sanitized_table_cache_lock : nullptr);
hb_lock_t lock (accelerator ? &accelerator->sanitized_table_cache_lock : nullptr);
auto *cache = accelerator ? &accelerator->sanitized_table_cache : &sanitized_table_cache;
if (cache