Always free the drawing glyph in ass_drawing_free; do not double free
clip vector bitmap.
*/
void ass_drawing_free(ass_drawing_t* drawing)
{
+ FT_Done_Glyph((FT_Glyph) drawing->glyph);
free(drawing->text);
free(drawing);
}
drawing_free_tokens(drawing->tokens);
return &drawing->glyph;
}
-
-
}
// Free clip vector and its bitmap, we don't need it anymore
- FT_Done_Glyph((FT_Glyph) drawing->glyph);
FT_Done_Glyph(glyph);
ass_drawing_free(render_priv->state.clip_drawing);
render_priv->state.clip_drawing = 0;