[subset] Check error after calling serializer end

This commit is contained in:
Behdad Esfahbod 2019-04-27 10:01:11 -07:00
parent 750b65e9a9
commit 2b051e7aa1
1 changed files with 4 additions and 5 deletions

View File

@ -99,12 +99,11 @@ _subset2 (hb_subset_plan_t *plan)
}
goto retry;
}
if (serializer.in_error ())
{
abort ();
}
serializer.end_serialize ();
if (serializer.in_error ())
abort ();
if (result)
{
hb_blob_t *dest_blob = serializer.copy_blob ();