1301 static PyObject *
1302 _wrap_gst_pad_get_query_types (PyGObject *self)
1303 {
1304 PyObject *ret;
1305 PyObject *item;
1306 int i;
1307 GstQueryType *tab;
1308
1309 tab = (GstQueryType*) gst_pad_get_query_types(GST_PAD(self->obj));
1310 if (tab == NULL) {
when treating unknown const GstQueryType * from gstpad.override:1309 as non-NULL
taking False path
1311 Py_INCREF(Py_None);
1312 return Py_None;
1313 }
1314
1315 ret = PyList_New(0);
when PyList_New() fails
1316 for (i = 0; tab[i] != 0; i++) {
when taking True path
1317 item = pyg_enum_from_gtype (GST_TYPE_QUERY_TYPE, tab[i]);
when treating unknown struct _PyGObject_Functions * from /usr/include/pygtk-2.0/pygobject.h:207 as non-NULL
when call succeeds
1318 PyList_Append(ret, item);
calling PyList_Append with NULL as argument 1 (ret) at gstpad.override:1318
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
1319 Py_XDECREF(item);
1320 }
1321
1322 return ret;
1323 }