pbutils: Fix leaked GStrv. Fixes #574258
authorEdward Hervey <bilboed@bilboed.com>
Thu, 5 Mar 2009 12:45:07 +0000 (13:45 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 5 Mar 2009 12:45:07 +0000 (13:45 +0100)
gst/pbutils.override

index 8e42685..b20153e 100644 (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);