mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-28 03:41:41 +00:00
Fix COreText leak on exit
This commit is contained in:
parent
47704f24c1
commit
a1b4f7c92d
1 changed files with 2 additions and 1 deletions
|
|
@ -75,10 +75,11 @@ ct_face(CTFontRef font) {
|
|||
|
||||
static void
|
||||
dealloc(CTFace* self) {
|
||||
if (self->ct_font) CFRelease(self->ct_font);
|
||||
if (self->hb_font) hb_font_destroy(self->hb_font);
|
||||
if (self->ct_font) CFRelease(self->ct_font);
|
||||
self->hb_font = NULL;
|
||||
self->ct_font = NULL;
|
||||
Py_CLEAR(self->family_name); Py_CLEAR(self->full_name); Py_CLEAR(self->postscript_name); Py_CLEAR(self->path);
|
||||
Py_TYPE(self)->tp_free((PyObject*)self);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue