initialize unused pointer to prevent freeing without allocating

This commit is contained in:
wiredfool 2014-01-27 23:24:42 -08:00
parent 0141d15aad
commit bd5935032f

View File

@ -137,6 +137,7 @@ getfont(PyObject* self_, PyObject* args, PyObject* kw)
}
if (filename && font_bytes_size <= 0) {
self->font_bytes = NULL;
error = FT_New_Face(library, filename, index, &self->face);
} else {
/* need to have allocated storage for font_bytes for the life of the object.*/