mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
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:
parent
4fc152af94
commit
e6eb16b03b
4 changed files with 17 additions and 5 deletions
10
ChangeLog
10
ChangeLog
|
@ -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
2
common
|
@ -1 +1 @@
|
|||
Subproject commit b2638c100721f67b280c3b43b21f1ce1c9b5e316
|
||||
Subproject commit 131c2632127e6f061b5270d8f80651782a4fdd13
|
|
@ -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*")
|
||||
)
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
%%
|
||||
|
|
Loading…
Reference in a new issue