File: gstpad.override
Function: _wrap_gst_pad_alloc_buffer_and_set_caps
Error: ob_refcnt of _Py_NoneStruct is 1 too low
1172 static PyObject *
1173 _wrap_gst_pad_alloc_buffer_and_set_caps (PyGObject *self, PyObject * args, PyObject *kwargs)
1174 {
1175     static char *kwlist[] = {"offset", "size", "caps", NULL};
1176     guint64    offset;
1177     gint    size;
1178     PyObject    *pcaps;
1179     GstCaps    *caps;
1180     PyObject    *ret;
1181     GstBuffer    *buf;
1182     GstFlowReturn    res;
1183 
1184     if (!PyArg_ParseTupleAndKeywords(args, kwargs,
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
1185                      "KiO:GstPad.alloc_buffer_and_set_caps",
1186                      kwlist, &offset, &size, &pcaps))
1187     return NULL;
1188     caps = pyg_boxed_get(pcaps, GstCaps);
1189     res = gst_pad_alloc_buffer_and_set_caps (GST_PAD(pygobject_get(self)),
1190                 offset, size, caps, &buf);
1191     ret = PyList_New(2);
when PyList_New() succeeds
1192     PyList_SetItem(ret, 0, pyg_enum_from_gtype(GST_TYPE_FLOW_RETURN, res));
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
when call succeeds
PyList_SetItem() succeeds
1193     if (res != GST_FLOW_OK) {
when taking True path
ob_refcnt is now refs: 0 + N where N >= 1
1194         PyList_SetItem(ret, 1, Py_None);
PyList_SetItem() succeeds
ob_refcnt is now refs: -1 + N where N >= 2
1195     } else {
1196         PyList_SetItem(ret, 1, pygstminiobject_new(GST_MINI_OBJECT(buf)));
1197 	/* Bring down the reference count, since we are meant to be the only
1198 	 * one holding a reference to the newly created buffer. */
1199 	gst_buffer_unref (buf);
1200     }
1201     return ret;
1202 }
ob_refcnt of _Py_NoneStruct is 1 too low
was expecting final ob_refcnt to be N + 0 (for some unknown N)
but final ob_refcnt is N + -1
found 1 similar trace(s) to this

File: gstpad.override
Function: _wrap_gst_pad_alloc_buffer_and_set_caps
Error: calling PyList_SetItem with NULL as argument 1 (ret) at gstpad.override:1192
1172 static PyObject *
1173 _wrap_gst_pad_alloc_buffer_and_set_caps (PyGObject *self, PyObject * args, PyObject *kwargs)
1174 {
1175     static char *kwlist[] = {"offset", "size", "caps", NULL};
1176     guint64    offset;
1177     gint    size;
1178     PyObject    *pcaps;
1179     GstCaps    *caps;
1180     PyObject    *ret;
1181     GstBuffer    *buf;
1182     GstFlowReturn    res;
1183 
1184     if (!PyArg_ParseTupleAndKeywords(args, kwargs,
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
1185                      "KiO:GstPad.alloc_buffer_and_set_caps",
1186                      kwlist, &offset, &size, &pcaps))
1187     return NULL;
1188     caps = pyg_boxed_get(pcaps, GstCaps);
1189     res = gst_pad_alloc_buffer_and_set_caps (GST_PAD(pygobject_get(self)),
1190                 offset, size, caps, &buf);
1191     ret = PyList_New(2);
when PyList_New() fails
1192     PyList_SetItem(ret, 0, pyg_enum_from_gtype(GST_TYPE_FLOW_RETURN, res));
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
when call succeeds
calling PyList_SetItem with NULL as argument 1 (ret) at gstpad.override:1192
PyList_SetItem() invokes Py_TYPE() on the pointer via the PyList_Check() macro, thus accessing (NULL)->ob_type
found 1 similar trace(s) to this
1193     if (res != GST_FLOW_OK) {
1194         PyList_SetItem(ret, 1, Py_None);
1195     } else {
1196         PyList_SetItem(ret, 1, pygstminiobject_new(GST_MINI_OBJECT(buf)));
1197 	/* Bring down the reference count, since we are meant to be the only
1198 	 * one holding a reference to the newly created buffer. */
1199 	gst_buffer_unref (buf);
1200     }
1201     return ret;
1202 }