]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/781
authorCristy <urban-warrior@imagemagick.org>
Tue, 26 Sep 2017 11:15:58 +0000 (07:15 -0400)
committerCristy <urban-warrior@imagemagick.org>
Tue, 26 Sep 2017 11:16:15 +0000 (07:16 -0400)
MagickCore/annotate.c

index 017b54f386d1f206fb49e003b7b2ea068ca04e16..03ab2b5046f559d61015b1de9ce5feb37d75bcab 100644 (file)
@@ -1793,8 +1793,8 @@ static MagickBooleanType RenderFreetype(Image *image,const DrawInfo *draw_info,
               if (bitmap->left > metrics->width)
                 metrics->width=bitmap->left;
             }
+          FT_Done_Glyph(glyph.image);
         }
-      FT_Done_Glyph(glyph.image);
     }
   metrics->bounds.x1/=64.0;
   metrics->bounds.y1/=64.0;