[ot-shape] Free shape plan maps upon error creating data (#2497)
This commit is contained in:
parent
dbf9896e7a
commit
a373e16131
|
@ -220,8 +220,14 @@ hb_ot_shape_plan_t::init0 (hb_face_t *face,
|
|||
{
|
||||
data = shaper->data_create (this);
|
||||
if (unlikely (!data))
|
||||
{
|
||||
map.fini ();
|
||||
#ifndef HB_NO_AAT_SHAPE
|
||||
aat_map.fini ();
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue