Commit 405b0751 authored by Vincent GENIEUX's avatar Vincent GENIEUX Committed by Alessandro Decina

gst/gststructure.override: Don't leak key names in _wrap_gst_structure_keys.

Original commit message from CVS:
patch by: Vincent GENIEUX <mutex at runbox dot com>
* gst/gststructure.override:
Don't leak key names in _wrap_gst_structure_keys.
parent 0cfca146
2009-01-05 Alessandro Decina <alessandro.decina@collabora.co.uk>
patch by: Vincent GENIEUX <mutex at runbox dot com>
* gst/gststructure.override:
Don't leak key names in _wrap_gst_structure_keys.
2009-01-02 Edward Hervey <edward.hervey@collabora.co.uk>
* gst/gst-types.defs:
......
......@@ -155,15 +155,13 @@ _wrap_gst_structure_keys (PyObject *self)
int i, n;
PyObject *ret;
ret = PyList_New(0);
s = pyg_boxed_get(self, GstStructure);
n = gst_structure_n_fields(s);
ret = PyList_New(n);
for (i = 0; i < n; ++i) {
const gchar *name = gst_structure_nth_field_name (s, i);
PyList_Append(ret, PyString_FromString(name));
PyList_SetItem(ret, i, PyString_FromString(name));
}
return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment