fixed leak exposed by test-ot-extents-cff

This commit is contained in:
Michiharu Ariza 2018-10-04 14:16:07 -07:00
parent 6238edbd8b
commit e7a045e4db
2 changed files with 7 additions and 0 deletions

View File

@ -627,6 +627,9 @@ struct ArgStack : Stack<ARG, 513>
/* an operator prefixed by its operands in a byte string */
struct OpStr
{
inline void init (void) {}
inline void fini (void) {}
OpCode op;
ByteStr str;
};

View File

@ -64,6 +64,10 @@ struct DictValues
inline void fini (void)
{
for (unsigned int i = 0; i < values.len; i++)
{
values[i].fini ();
}
values.fini ();
}