python: return NULL if get_list_of_pygobject fails (#44287)

This commit is contained in:
Benjamin Dauvergne 2020-06-20 12:27:54 +02:00
parent 6ed8e04ff1
commit 5f5bc888b1
1 changed files with 1 additions and 1 deletions

View File

@ -547,7 +547,7 @@ get_list_of_pygobject(const GList *a_list) {
failure:
PyErr_SetString(PyExc_TypeError, "Allocation problem in get_list_of_strings");
Py_XDECREF(a_tuple);
return noneRef();
return NULL;
}
/**