diff --git a/src/hb-subset.cc b/src/hb-subset.cc index 2165b8a72..b40eba361 100644 --- a/src/hb-subset.cc +++ b/src/hb-subset.cc @@ -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 ();