From: Víctor Manuel Jáquez Leal Date: Mon, 16 Mar 2009 09:16:01 +0000 (+0100) Subject: gstreamer-pbutils-0.10: Ownership transfer fixes X-Git-Tag: 0.6.0~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32ab93acae64abd9760b88d55017f9d7ada634c8;p=thirdparty%2Fvala.git gstreamer-pbutils-0.10: Ownership transfer fixes According to the documentation, these functions return newly-allocated structures, so they must transfer the ownership in vala context in order to prevent memory leaks. Fixes bug 575532. --- diff --git a/vapi/gstreamer-pbutils-0.10.vapi b/vapi/gstreamer-pbutils-0.10.vapi index 2d9ad1450..78873117e 100644 --- a/vapi/gstreamer-pbutils-0.10.vapi +++ b/vapi/gstreamer-pbutils-0.10.vapi @@ -1,9 +1,9 @@ -/* gstreamer-pbutils-0.10.vapi generated by lt-vapigen, do not modify. */ +/* gstreamer-pbutils-0.10.vapi generated by vapigen, do not modify. */ [CCode (cprefix = "Gst", lower_case_cprefix = "gst_")] namespace Gst { [Compact] - [CCode (cheader_filename = "gst/pbutils/pbutils.h")] + [CCode (type_id = "GST_TYPE_INSTALL_PLUGINS_CONTEXT", cheader_filename = "gst/pbutils/pbutils.h")] public class InstallPluginsContext { [CCode (has_construct_function = false)] public InstallPluginsContext (); @@ -38,29 +38,29 @@ namespace Gst { [CCode (cheader_filename = "gst/pbutils/pbutils.h")] public static bool is_missing_plugin_message (Gst.Message msg); [CCode (cheader_filename = "gst/pbutils/pbutils.h")] - public static unowned string missing_decoder_installer_detail_new (Gst.Caps decode_caps); + public static string missing_decoder_installer_detail_new (Gst.Caps decode_caps); [CCode (cheader_filename = "gst/pbutils/pbutils.h")] - public static unowned Gst.Message missing_decoder_message_new (Gst.Element element, Gst.Caps decode_caps); + public static Gst.Message missing_decoder_message_new (Gst.Element element, Gst.Caps decode_caps); [CCode (cheader_filename = "gst/pbutils/pbutils.h")] - public static unowned string missing_element_installer_detail_new (string factory_name); + public static string missing_element_installer_detail_new (string factory_name); [CCode (cheader_filename = "gst/pbutils/pbutils.h")] - public static unowned Gst.Message missing_element_message_new (Gst.Element element, string factory_name); + public static Gst.Message missing_element_message_new (Gst.Element element, string factory_name); [CCode (cheader_filename = "gst/pbutils/pbutils.h")] - public static unowned string missing_encoder_installer_detail_new (Gst.Caps encode_caps); + public static string missing_encoder_installer_detail_new (Gst.Caps encode_caps); [CCode (cheader_filename = "gst/pbutils/pbutils.h")] - public static unowned Gst.Message missing_encoder_message_new (Gst.Element element, Gst.Caps encode_caps); + public static Gst.Message missing_encoder_message_new (Gst.Element element, Gst.Caps encode_caps); [CCode (cheader_filename = "gst/pbutils/pbutils.h")] - public static unowned string missing_plugin_message_get_description (Gst.Message msg); + public static string missing_plugin_message_get_description (Gst.Message msg); [CCode (cheader_filename = "gst/pbutils/pbutils.h")] - public static unowned string missing_plugin_message_get_installer_detail (Gst.Message msg); + public static string missing_plugin_message_get_installer_detail (Gst.Message msg); [CCode (cheader_filename = "gst/pbutils/pbutils.h")] - public static unowned string missing_uri_sink_installer_detail_new (string protocol); + public static string missing_uri_sink_installer_detail_new (string protocol); [CCode (cheader_filename = "gst/pbutils/pbutils.h")] - public static unowned Gst.Message missing_uri_sink_message_new (Gst.Element element, string protocol); + public static Gst.Message missing_uri_sink_message_new (Gst.Element element, string protocol); [CCode (cheader_filename = "gst/pbutils/pbutils.h")] - public static unowned string missing_uri_source_installer_detail_new (string protocol); + public static string missing_uri_source_installer_detail_new (string protocol); [CCode (cheader_filename = "gst/pbutils/pbutils.h")] - public static unowned Gst.Message missing_uri_source_message_new (Gst.Element element, string protocol); + public static Gst.Message missing_uri_source_message_new (Gst.Element element, string protocol); [CCode (cheader_filename = "gst/pbutils/pbutils.h")] public static bool pb_utils_add_codec_description_to_tag_list (Gst.TagList taglist, string codec_tag, Gst.Caps caps); [CCode (cheader_filename = "gst/pbutils/pbutils.h")] diff --git a/vapi/packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10.metadata b/vapi/packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10.metadata index cb1c766e7..a92f92164 100644 --- a/vapi/packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10.metadata +++ b/vapi/packages/gstreamer-pbutils-0.10/gstreamer-pbutils-0.10.metadata @@ -1 +1,13 @@ Gst cprefix="Gst" lower_case_cprefix="gst_" cheader_filename="gst/pbutils/pbutils.h" +gst_missing_plugin_message_get_description transfer_ownership="1" +gst_missing_plugin_message_get_installer_detail transfer_ownership="1" +gst_missing_decoder_message_new transfer_ownership="1" +gst_missing_encoder_message_new transfer_ownership="1" +gst_missing_uri_source_message_new transfer_ownership="1" +gst_missing_uri_sink_message_new transfer_ownership="1" +gst_missing_element_message_new transfer_ownership="1" +gst_missing_uri_source_installer_detail_new transfer_ownership="1" +gst_missing_uri_sink_installer_detail_new transfer_ownership="1" +gst_missing_element_installer_detail_new transfer_ownership="1" +gst_missing_decoder_installer_detail_new transfer_ownership="1" +gst_missing_encoder_installer_detail_new transfer_ownership="1"