pbutils: Fix leaked GStrv. Fixes #574258
This commit is contained in:
parent
92f2e4d540
commit
3077b801bd
@ -137,11 +137,13 @@ _wrap_gst_install_plugins_sync(PyGObject *self, PyObject *args, PyObject *kwargs
|
|||||||
PyErr_SetString(PyExc_TypeError, "Details need to be a non-empty list or tuple of strings");
|
PyErr_SetString(PyExc_TypeError, "Details need to be a non-empty list or tuple of strings");
|
||||||
Py_DECREF(py_str);
|
Py_DECREF(py_str);
|
||||||
Py_DECREF(py_details);
|
Py_DECREF(py_details);
|
||||||
|
g_strfreev(details);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (!(str = PyString_AsString(py_str))) {
|
if (!(str = PyString_AsString(py_str))) {
|
||||||
Py_DECREF(py_str);
|
Py_DECREF(py_str);
|
||||||
Py_DECREF(py_details);
|
Py_DECREF(py_details);
|
||||||
|
g_strfreev(details);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
details[i] = g_strdup(str);
|
details[i] = g_strdup(str);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user