Forgot to release the font names in the destructor

This commit is contained in:
Kovid Goyal 2017-01-10 22:20:01 +05:30
parent a923660916
commit d4f18d9581

View File

@ -74,6 +74,7 @@ new(PyTypeObject *type, PyObject *args, PyObject UNUSED *kwds) {
static void
dealloc(Face* self) {
if (self->font) CFRelease(self->font);
Py_CLEAR(self->family_name); Py_CLEAR(self->full_name);
Py_TYPE(self)->tp_free((PyObject*)self);
}