gst/gst.defs (element_factory_make): Caller owns return, fixes leak

Original commit message from CVS:
* gst/gst.defs (element_factory_make): Caller owns return, fixes leak
(get_caps): Ditto

* gst/gst.override (_wrap_gst_tag_list_get): Leak fix
(_wrap_gst_tag_list_subscript): Ditto

Reviewed by: Johan Dahlin <johan@gnome.org>
This commit is contained in:
Johan Dahlin 2005-03-15 13:20:08 +00:00
parent 4fc152af94
commit e6eb16b03b
4 changed files with 17 additions and 5 deletions

View file

@ -1,3 +1,13 @@
2005-03-15 Richard Hult <richard@imendio.com>
* gst/gst.defs (element_factory_make): Caller owns return, fixes leak
(get_caps): Ditto
* gst/gst.override (_wrap_gst_tag_list_get): Leak fix
(_wrap_gst_tag_list_subscript): Ditto
Reviewed by: Johan Dahlin <johan@gnome.org>
2005-01-10 Thomas Vander Stichele <thomas at apestaart dot org>
* configure.ac:

2
common

@ -1 +1 @@
Subproject commit b2638c100721f67b280c3b43b21f1ce1c9b5e316
Subproject commit 131c2632127e6f061b5270d8f80651782a4fdd13

View file

@ -1558,6 +1558,7 @@
(define-function element_factory_make
(c-name "gst_element_factory_make")
(return-type "GstElement*")
(caller-owns-return #t)
(parameters
'("const-gchar*" "factoryname")
'("const-gchar*" "name" (null-ok) (default "NULL"))
@ -3144,6 +3145,7 @@
(define-method get_caps
(of-object "GstPad")
(c-name "gst_pad_get_caps")
(caller-owns-return #t)
(return-type "GstCaps*")
)

View file

@ -189,8 +189,8 @@ _wrap_gst_tag_list_subscript(PyGObject *self, PyObject *py_key)
PyErr_SetString(PyExc_TypeError, "lists are currently unspported");
}
if (v != NULL)
Py_INCREF(v);
if (v == NULL)
Py_INCREF(Py_None);
return v;
}
@ -242,8 +242,8 @@ _wrap_gst_tag_list_get(PyGObject *self, PyObject *args)
}
if (val == NULL)
val = failobj;
Py_INCREF(val);
Py_INCREF(Py_None);
return val;
}
%%