149 static PyObject *
150 _wrap_gst_message_parse_warning (PyGstMiniObject *self)
151 {
152 PyObject *ret;
153 GError *warning = NULL;
154 gchar *debug;
155
156 if (GST_MESSAGE_TYPE(self->obj) != GST_MESSAGE_WARNING) {
when treating unknown struct GstMiniObject * from gstmessage.override:156 as non-NULL
when taking False path
157 PyErr_SetString(PyExc_TypeError, "Message is not an warning message");
158 return NULL;
159 }
160
161 gst_message_parse_warning (GST_MESSAGE(self->obj), &warning, &debug);
162
163 ret = PyList_New(2);
when PyList_New() fails
164 PyList_SetItem(ret, 0, pyg_boxed_new (GST_TYPE_G_ERROR, warning, TRUE, TRUE));
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 gstmessage.override:164
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
165 if (warning)
166 g_error_free (warning);
167 if (debug != NULL) {
168 PyList_SetItem(ret, 1, PyString_FromString(debug));
169 } else {
170 Py_INCREF (Py_None);
171 PyList_SetItem(ret, 1, Py_None);
172 }
173 g_free(debug);
174 return ret;
175 }