gst/: Don't leak PyObjects wrapping GValues when indexing into a

Original commit message from CVS:
* gst/gststructure.override:
* gst/gsttaglist.override:
Don't leak PyObjects wrapping GValues when indexing into a
GStStructure. Also fix a copy/paste identical bug in taglists.
This commit is contained in:
Michael Smith 2006-03-06 16:24:53 +00:00
parent 9fdbc6b987
commit d64761af50
3 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,10 @@
2006-03-06 Michael Smith <msmith@fluendo.com>
* gst/gststructure.override:
* gst/gsttaglist.override:
Don't leak PyObjects wrapping GValues when indexing into a
GStStructure. Also fix a copy/paste identical bug in taglists.
2006-03-02 Edward Hervey <edward@fluendo.com> 2006-03-02 Edward Hervey <edward@fluendo.com>
* gst/pygstminiobject.h: * gst/pygstminiobject.h:

View file

@ -193,8 +193,6 @@ _wrap_gst_structure_subscript(PyGObject *self, PyObject *py_key)
PyErr_SetString(PyExc_KeyError, field); PyErr_SetString(PyExc_KeyError, field);
} }
if (v != NULL)
Py_INCREF(v);
return v; return v;
} }

View file

@ -84,8 +84,6 @@ _wrap_gst_tag_list_subscript(PyGObject *self, PyObject *py_key)
PyErr_SetString(PyExc_KeyError, field); PyErr_SetString(PyExc_KeyError, field);
} }
if (v != NULL)
Py_INCREF(v);
return v; return v;
} }