mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-07 22:41:27 +00:00
[VARC] Fix scratch caching
This commit is contained in:
parent
a62058eee8
commit
17ddc84406
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ struct VARC
|
|||
}
|
||||
void release_scratch (hb_varc_scratch_t *scratch) const
|
||||
{
|
||||
if (!cached_scratch.cmpexch (scratch, nullptr))
|
||||
if (!cached_scratch.cmpexch (nullptr, scratch))
|
||||
{
|
||||
scratch->~hb_varc_scratch_t ();
|
||||
hb_free (scratch);
|
||||
|
|
Loading…
Add table
Reference in a new issue