File: | gstelement.override |
Function: | _wrap_gst_element_get_query_types |
Error: | ob_refcnt of '*item' is 1 too high |
490 static PyObject *
491 _wrap_gst_element_get_query_types (PyGObject *self)
492 {
493 PyObject *ret;
494 PyObject *item;
495 int i;
496 GstQueryType *tab;
497
498 pyg_begin_allow_threads;
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
when considering range: -0x80000000 <= value <= -1
taking True path
releasing the GIL by calling PyEval_SaveThread()
499 tab = (GstQueryType*) gst_element_get_query_types(GST_ELEMENT(self->obj));
500 pyg_end_allow_threads;
when considering range: 1 <= value <= 0x7fffffff
taking True path
reacquiring the GIL by calling PyEval_RestoreThread()
501 if (tab == NULL) {
when treating unknown const GstQueryType * from gstelement.override:499 as non-NULL
taking False path
502 Py_INCREF(Py_None);
503 return Py_None;
504 }
505
506 ret = PyList_New(0);
when PyList_New() succeeds
507 for (i = 0; tab[i] != 0; i++) {
when taking True path
when taking False path
508 item = pyg_enum_from_gtype (GST_TYPE_QUERY_TYPE, tab[i]);
when call succeeds
new ref from call through function pointer allocated at: item = pyg_enum_from_gtype (GST_TYPE_QUERY_TYPE, tab[i]);
ob_refcnt is now refs: 1 + N where N >= 0
509 PyList_Append(ret, item);
when PyList_Append() succeeds
ob_refcnt is now refs: 2 + N where N >= 0
'*item' is now referenced by 1 non-stack value(s): PyListObject.ob_item[0]
510 }
511
512 return ret;
513 }
ob_refcnt of '*item' is 1 too high
was expecting final ob_refcnt to be N + 1 (for some unknown N)
due to object being referenced by: PyListObject.ob_item[0]
but final ob_refcnt is N + 2
found 5 similar trace(s) to this
File: | gstelement.override |
Function: | _wrap_gst_element_get_query_types |
Error: | calling PyList_Append with NULL as argument 1 (ret) at gstelement.override:509 |
490 static PyObject *
491 _wrap_gst_element_get_query_types (PyGObject *self)
492 {
493 PyObject *ret;
494 PyObject *item;
495 int i;
496 GstQueryType *tab;
497
498 pyg_begin_allow_threads;
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
when considering range: -0x80000000 <= value <= -1
taking True path
releasing the GIL by calling PyEval_SaveThread()
499 tab = (GstQueryType*) gst_element_get_query_types(GST_ELEMENT(self->obj));
500 pyg_end_allow_threads;
when considering range: -0x80000000 <= value <= -1
taking True path
reacquiring the GIL by calling PyEval_RestoreThread()
501 if (tab == NULL) {
when treating unknown const GstQueryType * from gstelement.override:499 as non-NULL
taking False path
502 Py_INCREF(Py_None);
503 return Py_None;
504 }
505
506 ret = PyList_New(0);
when PyList_New() fails
507 for (i = 0; tab[i] != 0; i++) {
when taking True path
508 item = pyg_enum_from_gtype (GST_TYPE_QUERY_TYPE, tab[i]);
when call succeeds
509 PyList_Append(ret, item);
calling PyList_Append with NULL as argument 1 (ret) at gstelement.override:509
PyList_Append() invokes Py_TYPE() on the pointer via the PyList_Check() macro, thus accessing (NULL)->ob_type
found 3 similar trace(s) to this
510 }
511
512 return ret;
513 }