[subset] Fix memory leak in hb-subset.
This commit is contained in:
parent
0fb8a5ce19
commit
66b0a39079
|
@ -264,13 +264,10 @@ _subset_table (hb_subset_plan_t *plan,
|
||||||
default:
|
default:
|
||||||
hb_blob_t *source_table = hb_face_reference_table(plan->source, tag);
|
hb_blob_t *source_table = hb_face_reference_table(plan->source, tag);
|
||||||
if (likely (source_table))
|
if (likely (source_table))
|
||||||
{
|
|
||||||
result = hb_subset_plan_add_table(plan, tag, source_table);
|
result = hb_subset_plan_add_table(plan, tag, source_table);
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
result = false;
|
result = false;
|
||||||
}
|
hb_blob_destroy (source_table);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
DEBUG_MSG(SUBSET, nullptr, "subset %c%c%c%c %s", HB_UNTAG(tag), result ? "ok" : "FAILED");
|
DEBUG_MSG(SUBSET, nullptr, "subset %c%c%c%c %s", HB_UNTAG(tag), result ? "ok" : "FAILED");
|
||||||
|
|
Loading…
Reference in New Issue