]> granicus.if.org Git - libass/commitdiff
ASS_Drawing: do not free glyph
authorGrigori Goronzy <greg@blackbox>
Wed, 14 Jul 2010 13:16:13 +0000 (15:16 +0200)
committerGrigori Goronzy <greg@blackbox>
Wed, 14 Jul 2010 13:16:13 +0000 (15:16 +0200)
The glyph is inserted into the cache and freed upon cache reset,
so it shouldn't be freed alongside the drawing.

libass/ass_drawing.c

index a3207c7c3b113e0217a6e399499d04f768845ab0..4be03ba5665a06a05e74340c771a3f9377d43e76 100644 (file)
@@ -390,8 +390,6 @@ ASS_Drawing *ass_drawing_new(void *fontconfig_priv, ASS_Font *font,
 void ass_drawing_free(ASS_Drawing* drawing)
 {
     if (drawing) {
-        if (drawing->glyph)
-            FT_Done_Glyph((FT_Glyph) drawing->glyph);
         free(drawing->text);
     }
     free(drawing);