File: src/imlib2.c
Function: imlib2_load_font
Error: dereferencing NULL (o->font) at src/imlib2.c:284
265 PyObject *imlib2_load_font(PyObject *self, PyObject *args)
266 {
267     char *font_spec;
268     Imlib_Font *font;
269     Font_PyObject *o;
270 
271     if (!PyArg_ParseTuple(args, "s", &font_spec))
272         return NULL;
when PyArg_ParseTuple() succeeds
taking False path
273 
274     PyImlib2_BEGIN_CRITICAL_SECTION
275     font = imlib_load_font(font_spec);
releasing the GIL by calling PyEval_SaveThread()
276     PyImlib2_END_CRITICAL_SECTION
277     if (!font) {
reacquiring the GIL by calling PyEval_RestoreThread()
278         PyErr_Format(PyExc_IOError, "Couldn't open font: %s", font_spec);
when treating unknown void * from src/imlib2.c:276 as non-NULL
taking False path
279         return NULL;
280     }
281     o = PyObject_NEW(Font_PyObject, &Font_PyObject_Type);
282     o->font = font;
when PyObject_Init() fails
283     return (PyObject *)o;
dereferencing NULL (o->font) at src/imlib2.c:284
284 }
285