mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 10:27:24 +00:00
finalize the fontconfig library on exit
This commit is contained in:
parent
cda385b37c
commit
150ffab72d
1 changed files with 4 additions and 0 deletions
|
|
@ -85,6 +85,10 @@ init_fontconfig_library(PyObject *module) {
|
|||
PyErr_SetString(PyExc_RuntimeError, "Failed to initialize the fontconfig library");
|
||||
return false;
|
||||
}
|
||||
if (Py_AtExit(FcFini) != 0) {
|
||||
PyErr_SetString(PyExc_RuntimeError, "Failed to register the fontconfig library at exit handler");
|
||||
return false;
|
||||
}
|
||||
if (PyModule_AddFunctions(module, module_methods) != 0) return false;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue