[ot-svg] Free pixmap buffer if error occurs while rendering.

GSoC-2019-moazin
Moazin Khatti 5 years ago
parent 836c94e8d2
commit b6f04b03e4
  1. 8
      src/svg/ftsvg.c

@ -113,7 +113,13 @@
if ( error )
return error;
return hooks.render_svg( slot );
error = hooks.render_svg( slot );
if ( error )
FT_FREE( slot->bitmap.buffer );
else
slot->internal->flags |= FT_GLYPH_OWN_BITMAP;
return error;
}
static const SVG_Interface svg_interface = {

Loading…
Cancel
Save