mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 17:06:16 +03:00
Merge branch 'master' into heap
This commit is contained in:
commit
c8470d3c84
|
@ -890,8 +890,6 @@ font_render(FontObject* self, PyObject* args)
|
|||
|
||||
bitmap = bitmap_glyph->bitmap;
|
||||
left = bitmap_glyph->left;
|
||||
|
||||
FT_Done_Glyph(glyph);
|
||||
} else {
|
||||
bitmap = glyph_slot->bitmap;
|
||||
left = glyph_slot->bitmap_left;
|
||||
|
@ -953,6 +951,9 @@ font_render(FontObject* self, PyObject* args)
|
|||
}
|
||||
x += glyph_info[i].x_advance;
|
||||
y -= glyph_info[i].y_advance;
|
||||
if (stroker != NULL) {
|
||||
FT_Done_Glyph(glyph);
|
||||
}
|
||||
}
|
||||
|
||||
FT_Stroker_Done(stroker);
|
||||
|
|
Loading…
Reference in New Issue
Block a user