forked from minhngoc25a/freetype2
[ot-svg] Free pixmap buffer if error occurs while rendering.
This commit is contained in:
parent
836c94e8d2
commit
b6f04b03e4
|
@ -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…
Reference in New Issue