File: | goocanvas.override |
Function: | _glist_to_pylist_objs |
Error: | dereferencing NULL (item->ob_refcnt) at goocanvas.override:29 |
20 static PyObject *
21 _glist_to_pylist_objs (GList *source)
22 {
23 GList *iter;
24 PyObject *dest = PyList_New (0);
when PyList_New() succeeds
25 for (iter = source; iter != NULL; iter = iter->next)
when treating unknown struct GList * from goocanvas.override:21 as non-NULL
taking True path
26 {
27 PyObject *item = pygobject_new ((GObject *)iter->data);
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
when call fails
28 PyList_Append (dest, item);
returning -1 from PyList_Append() due to NULL item
29 Py_DECREF (item);
dereferencing NULL (item->ob_refcnt) at goocanvas.override:29
30 }
31 return dest;
32 }
File: | goocanvas.override |
Function: | _glist_to_pylist_objs |
Error: | calling PyList_Append with NULL as argument 1 (dest) at goocanvas.override:28 |
20 static PyObject *
21 _glist_to_pylist_objs (GList *source)
22 {
23 GList *iter;
24 PyObject *dest = PyList_New (0);
when PyList_New() fails
25 for (iter = source; iter != NULL; iter = iter->next)
when treating unknown struct GList * from goocanvas.override:21 as non-NULL
taking True path
26 {
27 PyObject *item = pygobject_new ((GObject *)iter->data);
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
when call succeeds
28 PyList_Append (dest, item);
calling PyList_Append with NULL as argument 1 (dest) at goocanvas.override:28
PyList_Append() invokes Py_TYPE() on the pointer via the PyList_Check() macro, thus accessing (NULL)->ob_type
found 1 similar trace(s) to this
29 Py_DECREF (item);
30 }
31 return dest;
32 }