File: | gstevent.override |
Function: | _wrap_gst_event_parse_buffer_size |
Error: | ob_refcnt of PyBool_FromLong is 1 too high |
145 static PyObject *
146 _wrap_gst_event_parse_buffer_size (PyGstMiniObject *self)
147 {
148 GstFormat format;
149 gint64 minsize;
150 gint64 maxsize;
151 gboolean async;
152
153 if (GST_EVENT_TYPE (self->obj) != GST_EVENT_BUFFERSIZE) {
when treating unknown struct GstMiniObject * from gstevent.override:153 as non-NULL
when taking False path
154 PyErr_SetString(PyExc_TypeError, "Event is not an 'BufferSize' event");
155 return NULL;
156 }
157
158 gst_event_parse_buffer_size (GST_EVENT (self->obj),
159 &format, &minsize,
160 &maxsize, &async);
161
162 return Py_BuildValue("(OLLO)",
PyBool_FromLong() returns
when call succeeds
when Py_BuildValue() succeeds
PyBool_FromLong allocated at: return Py_BuildValue("(OLLO)",
ob_refcnt is now refs: 1 + N where N >= 0
ob_refcnt is now refs: 1 + N where N >= 1
163 pyg_enum_from_gtype(GST_TYPE_FORMAT, format),
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
164 minsize, maxsize,
165 PyBool_FromLong(async));
166 }
ob_refcnt of PyBool_FromLong 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 2 similar trace(s) to this
File: | gstevent.override |
Function: | _wrap_gst_event_parse_buffer_size |
Error: | ob_refcnt of new ref from call through function pointer is 1 too high |
145 static PyObject *
146 _wrap_gst_event_parse_buffer_size (PyGstMiniObject *self)
147 {
148 GstFormat format;
149 gint64 minsize;
150 gint64 maxsize;
151 gboolean async;
152
153 if (GST_EVENT_TYPE (self->obj) != GST_EVENT_BUFFERSIZE) {
when treating unknown struct GstMiniObject * from gstevent.override:153 as non-NULL
when taking False path
154 PyErr_SetString(PyExc_TypeError, "Event is not an 'BufferSize' event");
155 return NULL;
156 }
157
158 gst_event_parse_buffer_size (GST_EVENT (self->obj),
159 &format, &minsize,
160 &maxsize, &async);
161
162 return Py_BuildValue("(OLLO)",
PyBool_FromLong() returns
when call succeeds
when Py_BuildValue() succeeds
new ref from call through function pointer allocated at: return Py_BuildValue("(OLLO)",
ob_refcnt is now refs: 1 + N where N >= 0
ob_refcnt is now refs: 1 + N where N >= 1
163 pyg_enum_from_gtype(GST_TYPE_FORMAT, format),
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
164 minsize, maxsize,
165 PyBool_FromLong(async));
166 }
ob_refcnt of new ref from call through function pointer 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 1 similar trace(s) to this