[subset] fix incorrectly specified lock.

Lock variable must have a name or it will immediately destruct.
This commit is contained in:
Garret Rieger authored and Behdad Esfahbod committed 2023-03-16 20:30:39 -06:00
1 parent 8d8bcde8cf
commit 79233a1492
1 file changed
+1 -1
+1 -1
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