mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 04:22:27 +00:00
pbutils: Fix leaked GStrv. Fixes #574258
This commit is contained in:
parent
92f2e4d540
commit
3077b801bd
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue