fix memory leak (#3775)

This commit is contained in:
talaj 2017-10-06 09:27:58 +02:00 committed by Artem Pavlenko
parent 8dc1456766
commit 8347778abb

View file

@ -220,11 +220,7 @@ void agg_text_renderer<T>::render(glyph_positions const& pos)
if (!error) if (!error)
{ {
FT_BitmapGlyph bit = reinterpret_cast<FT_BitmapGlyph>(g); FT_BitmapGlyph bit = reinterpret_cast<FT_BitmapGlyph>(g);
if (bit->bitmap.pixel_mode == FT_PIXEL_MODE_BGRA) if (bit->bitmap.pixel_mode != FT_PIXEL_MODE_BGRA)
{
continue;
}
else
{ {
composite_bitmap(pixmap_, composite_bitmap(pixmap_,
&bit->bitmap, &bit->bitmap,