mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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:
parent
9fdbc6b987
commit
d64761af50
3 changed files with 7 additions and 4 deletions
|
@ -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:
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue