device: gst_device_create_element() is transfer floating, not transfer full

Fixing the annotation fixes leaking of the created element in all
bindings using GObject-Introspection.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/444
This commit is contained in:
Sebastian Dröge 2019-09-12 10:03:08 +03:00 committed by Sebastian Dröge
parent 89dfda56e3
commit 1edcf747ee

View file

@ -196,7 +196,7 @@ gst_device_set_property (GObject * object, guint prop_id,
* Creates the element with all of the required parameters set to use
* this device.
*
* Returns: (transfer full) (nullable): a new #GstElement configured to use
* Returns: (transfer floating) (nullable): a new #GstElement configured to use
* this device
*
* Since: 1.4