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)
{
FT_BitmapGlyph bit = reinterpret_cast<FT_BitmapGlyph>(g);
if (bit->bitmap.pixel_mode == FT_PIXEL_MODE_BGRA)
{
continue;
}
else
if (bit->bitmap.pixel_mode != FT_PIXEL_MODE_BGRA)
{
composite_bitmap(pixmap_,
&bit->bitmap,