pbutils: Fix leaked GStrv. Fixes #574258

This commit is contained in:
Edward Hervey 2009-03-05 13:45:07 +01:00
parent 92f2e4d540
commit 3077b801bd

View file

@ -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");
Py_DECREF(py_str);
Py_DECREF(py_details);
g_strfreev(details);
return NULL;
}
if (!(str = PyString_AsString(py_str))) {
Py_DECREF(py_str);
Py_DECREF(py_details);
g_strfreev(details);
return NULL;
}
details[i] = g_strdup(str);