[vala] gstreamer-pbutils-0.10: Ownership transfer fixes
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] gstreamer-pbutils-0.10: Ownership transfer fixes
- Date: Sun, 29 Mar 2009 10:32:49 -0400 (EDT)
commit 32ab93acae64abd9760b88d55017f9d7ada634c8
Author: VÃctor Manuel Jáquez Leal <vjaquez igalia com>
Date: Mon Mar 16 10:16:01 2009 +0100
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.
---
vapi/gstreamer-pbutils-0.10.vapi | 28 ++++++++++----------
.../gstreamer-pbutils-0.10.metadata | 12 ++++++++
2 files changed, 26 insertions(+), 14 deletions(-)
diff --git a/vapi/gstreamer-pbutils-0.10.vapi b/vapi/gstreamer-pbutils-0.10.vapi
index 2d9ad14..7887311 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 cb1c766..a92f921 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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]