mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 07:21:06 +01:00
[ot-shape] Free shape plan maps upon error creating data (#2497)
This commit is contained in:
1 parent
dbf9896e7a
commit
a373e16131
1 file changed
+6
@@ -220,7 +220,13 @@ 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;
|
||||
|
||||
Reference in new issue
Block a user