mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Merge pull request #7177 from radarhere/freetype
This commit is contained in:
commit
76a8e9ceb3
|
@ -189,7 +189,7 @@ getfont(PyObject *self_, PyObject *args, PyObject *kw) {
|
||||||
/* Don't free this before FT_Done_Face */
|
/* Don't free this before FT_Done_Face */
|
||||||
self->font_bytes = PyMem_Malloc(font_bytes_size);
|
self->font_bytes = PyMem_Malloc(font_bytes_size);
|
||||||
if (!self->font_bytes) {
|
if (!self->font_bytes) {
|
||||||
error = 65; // Out of Memory in Freetype.
|
error = FT_Err_Out_Of_Memory;
|
||||||
}
|
}
|
||||||
if (!error) {
|
if (!error) {
|
||||||
memcpy(self->font_bytes, font_bytes, (size_t)font_bytes_size);
|
memcpy(self->font_bytes, font_bytes, (size_t)font_bytes_size);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user