[subset] Check error after calling serializer end

This commit is contained in:
Behdad Esfahbod committed 2019-04-27 10:01:11 -07:00
1 parent 750b65e9a9
commit 2b051e7aa1
1 file changed
+4 -5
+4 -5
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 ();