mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[gsubgpos] Simplify a destruction
This commit is contained in:
parent
d0d256bb66
commit
3577992a5b
1 changed files with 4 additions and 3 deletions
|
@ -4908,9 +4908,10 @@ struct GSUBGPOS
|
|||
{
|
||||
for (unsigned int i = 0; i < this->lookup_count; i++)
|
||||
{
|
||||
if (this->accels[i])
|
||||
this->accels[i]->fini ();
|
||||
hb_free (this->accels[i]);
|
||||
auto *accel = this->accels[i].get_relaxed ();
|
||||
if (accel)
|
||||
accel->fini ();
|
||||
hb_free (accel);
|
||||
}
|
||||
hb_free (this->accels);
|
||||
this->table.destroy ();
|
||||
|
|
Loading…
Add table
Reference in a new issue