fix memory leak (#3775)
This commit is contained in:
parent
5996fb07ec
commit
995ab49f23
3 changed files with 12 additions and 8 deletions
|
@ -28,6 +28,7 @@
|
||||||
#include <mapnik/coord.hpp>
|
#include <mapnik/coord.hpp>
|
||||||
#include <mapnik/vertex.hpp>
|
#include <mapnik/vertex.hpp>
|
||||||
#include <mapnik/geometry_types.hpp>
|
#include <mapnik/geometry_types.hpp>
|
||||||
|
#include <mapnik/geometry.hpp>
|
||||||
// stl
|
// stl
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
|
@ -178,13 +178,16 @@ 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);
|
||||||
composite_bitmap(pixmap_,
|
if (bit->bitmap.pixel_mode != FT_PIXEL_MODE_BGRA)
|
||||||
&bit->bitmap,
|
{
|
||||||
halo_fill,
|
composite_bitmap(pixmap_,
|
||||||
bit->left,
|
&bit->bitmap,
|
||||||
height - bit->top,
|
halo_fill,
|
||||||
halo_opacity,
|
bit->left,
|
||||||
halo_comp_op_);
|
height - bit->top,
|
||||||
|
halo_opacity,
|
||||||
|
halo_comp_op_);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit a2624810e3f8d187af2ec0995bcfba0ef61d00d9
|
Subproject commit 2749835d3265d95b951c2c90c099fac35e326f39
|
Loading…
Reference in a new issue