File: gstbus.override
Function: _wrap_gst_bus_add_watch
Error: ob_refcnt of '*callback' is 1 too high
225 static PyObject *
226 _wrap_gst_bus_add_watch (PyGObject *self, PyObject *args)
227 {
228     PyObject *callback, *cbargs = NULL, *data;
229     guint sigid;
230     guint len;
231 
232     len = PyTuple_Size(args);
when PyTuple_Size() returns ob_size
233 
234     if (len < 1) {
when considering range: 1 <= value <= 0xffffffff
taking False path
235         PyErr_SetString(PyExc_TypeError, "Bus.add_watch requires at least 1 argument");
236         return NULL;
237     }
238 
239     callback = PySequence_GetItem(args, 0);
when PySequence_GetItem() succeeds
new ref from PySequence_GetItem allocated at:     callback = PySequence_GetItem(args, 0);
ob_refcnt is now refs: 1 + N where N >= 0
240     if (!PyCallable_Check(callback)) {
when PyCallable_Check() returns 1 (true)
taking False path
241         PyErr_SetString(PyExc_TypeError, "callback is not callable");
242         return NULL;
243     }
244     cbargs = PySequence_GetSlice(args, 1, len);
when PySequence_GetSlice() succeeds
245     if (cbargs == NULL)
taking False path
246         return NULL;
247     /* FIXME: thomas: I'm pretty sure the second N needs to be O */
248     data = Py_BuildValue("(ON)", callback, cbargs);
when Py_BuildValue() succeeds
ob_refcnt is now refs: 1 + N where N >= 1
249     if (data == NULL)
taking False path
250         return NULL;
251 
252     sigid = gst_bus_add_watch_full (GST_BUS (self->obj), G_PRIORITY_DEFAULT,
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
253         (GstBusFunc) bus_func, data, (GDestroyNotify)pyg_destroy_notify);
254 
255     return PyInt_FromLong(sigid);
when PyInt_FromLong() succeeds
256 }
ob_refcnt of '*callback' is 1 too high
was expecting final ob_refcnt to be N + 0 (for some unknown N)
but final ob_refcnt is N + 1
found 9 similar trace(s) to this

File: gstbus.override
Function: _wrap_gst_bus_add_watch
Error: ob_refcnt of '*data' is 1 too high
225 static PyObject *
226 _wrap_gst_bus_add_watch (PyGObject *self, PyObject *args)
227 {
228     PyObject *callback, *cbargs = NULL, *data;
229     guint sigid;
230     guint len;
231 
232     len = PyTuple_Size(args);
when PyTuple_Size() returns ob_size
233 
234     if (len < 1) {
when considering range: 1 <= value <= 0xffffffff
taking False path
235         PyErr_SetString(PyExc_TypeError, "Bus.add_watch requires at least 1 argument");
236         return NULL;
237     }
238 
239     callback = PySequence_GetItem(args, 0);
when PySequence_GetItem() succeeds
240     if (!PyCallable_Check(callback)) {
when PyCallable_Check() returns 1 (true)
taking False path
241         PyErr_SetString(PyExc_TypeError, "callback is not callable");
242         return NULL;
243     }
244     cbargs = PySequence_GetSlice(args, 1, len);
when PySequence_GetSlice() succeeds
245     if (cbargs == NULL)
taking False path
246         return NULL;
247     /* FIXME: thomas: I'm pretty sure the second N needs to be O */
248     data = Py_BuildValue("(ON)", callback, cbargs);
when Py_BuildValue() succeeds
new ref from call to Py_BuildValue allocated at:     data = Py_BuildValue("(ON)", callback, cbargs);
ob_refcnt is now refs: 1 + N where N >= 0
249     if (data == NULL)
taking False path
250         return NULL;
251 
252     sigid = gst_bus_add_watch_full (GST_BUS (self->obj), G_PRIORITY_DEFAULT,
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
253         (GstBusFunc) bus_func, data, (GDestroyNotify)pyg_destroy_notify);
254 
255     return PyInt_FromLong(sigid);
when PyInt_FromLong() succeeds
256 }
ob_refcnt of '*data' is 1 too high
was expecting final ob_refcnt to be N + 0 (for some unknown N)
but final ob_refcnt is N + 1
found 3 similar trace(s) to this

File: gstbus.override
Function: _wrap_gst_bus_add_watch
Error: ob_refcnt of '*cbargs' is 1 too high
225 static PyObject *
226 _wrap_gst_bus_add_watch (PyGObject *self, PyObject *args)
227 {
228     PyObject *callback, *cbargs = NULL, *data;
229     guint sigid;
230     guint len;
231 
232     len = PyTuple_Size(args);
when PyTuple_Size() returns ob_size
233 
234     if (len < 1) {
when considering range: 1 <= value <= 0xffffffff
taking False path
235         PyErr_SetString(PyExc_TypeError, "Bus.add_watch requires at least 1 argument");
236         return NULL;
237     }
238 
239     callback = PySequence_GetItem(args, 0);
when PySequence_GetItem() succeeds
240     if (!PyCallable_Check(callback)) {
when PyCallable_Check() returns 1 (true)
taking False path
241         PyErr_SetString(PyExc_TypeError, "callback is not callable");
242         return NULL;
243     }
244     cbargs = PySequence_GetSlice(args, 1, len);
when PySequence_GetSlice() succeeds
new ref from PySequence_GetSlice allocated at:     cbargs = PySequence_GetSlice(args, 1, len);
ob_refcnt is now refs: 1 + N where N >= 0
245     if (cbargs == NULL)
taking False path
246         return NULL;
247     /* FIXME: thomas: I'm pretty sure the second N needs to be O */
248     data = Py_BuildValue("(ON)", callback, cbargs);
when Py_BuildValue() fails
249     if (data == NULL)
taking True path
250         return NULL;
251 
252     sigid = gst_bus_add_watch_full (GST_BUS (self->obj), G_PRIORITY_DEFAULT,
253         (GstBusFunc) bus_func, data, (GDestroyNotify)pyg_destroy_notify);
254 
255     return PyInt_FromLong(sigid);
256 }
ob_refcnt of '*cbargs' is 1 too high
was expecting final ob_refcnt to be N + 0 (for some unknown N)
but final ob_refcnt is N + 1
found 3 similar trace(s) to this