mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
[decycler] Don't leave a dangling pointer around
Even if it was never accessed.
This commit is contained in:
parent
c7fc03a33a
commit
5aea89b5c4
1 changed files with 2 additions and 0 deletions
|
@ -112,6 +112,8 @@ struct hb_decycler_node_t
|
|||
~hb_decycler_node_t ()
|
||||
{
|
||||
decycler = snapshot;
|
||||
if (decycler.hare)
|
||||
decycler.hare->next = nullptr;
|
||||
}
|
||||
|
||||
bool visit (unsigned value_)
|
||||
|
|
Loading…
Add table
Reference in a new issue