From: Rico Tzschichholz Date: Wed, 18 Mar 2015 19:15:31 +0000 (+0100) Subject: glib: get_filename_charsets "returns" unowned string[] X-Git-Tag: 0.27.2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8674d5c5b2d0fb7ed318d6d35e1857233f9151bd;p=thirdparty%2Fvala.git glib: get_filename_charsets "returns" unowned string[] --- diff --git a/tests/methods/bug743877.vala b/tests/methods/bug743877.vala index 127aaf060..ca4c87de6 100644 --- a/tests/methods/bug743877.vala +++ b/tests/methods/bug743877.vala @@ -1,7 +1,7 @@ void main () { Intl.setlocale (); - string[] charsets; + unowned string[] charsets; var is_utf8 = GLib.get_filename_charsets (out charsets); assert (charsets.length != -1); diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index aa4690965..b74b13934 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -2266,7 +2266,7 @@ namespace GLib { public static string convert (string str, ssize_t len, string to_codeset, string from_codeset, out size_t bytes_read = null, out size_t bytes_written = null) throws ConvertError; public static bool get_charset (out unowned string charset); - public static bool get_filename_charsets ([CCode (array_length = false, array_null_terminated = true)] out string[] charsets); + public static bool get_filename_charsets ([CCode (array_length = false, array_null_terminated = true)] out unowned string[] charsets); [SimpleType] public struct IConv {