From bd9158e404423b64e01dc453e1c5b78373a4352e Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Sun, 20 May 2018 12:55:58 +0200 Subject: [PATCH] javascriptcoregtk-4.0: buffer of String.get_utf8_cstring() is not "ref" https://bugzilla.gnome.org/show_bug.cgi?id=788113 --- vapi/javascriptcoregtk-4.0.vapi | 2 +- vapi/metadata/JavaScriptCore-4.0-custom.vala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vapi/javascriptcoregtk-4.0.vapi b/vapi/javascriptcoregtk-4.0.vapi index aceba5c38..39698746f 100644 --- a/vapi/javascriptcoregtk-4.0.vapi +++ b/vapi/javascriptcoregtk-4.0.vapi @@ -55,7 +55,7 @@ namespace JS { [CCode (cname = "JSStringGetMaximumUTF8CStringSize")] public size_t get_maximum_utf8_cstring_size (); [CCode (cname = "JSStringGetUTF8CString")] - public size_t get_utf8_cstring ([CCode (array_length_type = "gsize")] ref uint8[] buffer); + public size_t get_utf8_cstring ([CCode (array_length_type = "gsize")] uint8[] buffer); [CCode (cname = "JSStringIsEqual")] public bool is_equal (JS.String b); [CCode (cname = "JSStringIsEqualToUTF8CString")] diff --git a/vapi/metadata/JavaScriptCore-4.0-custom.vala b/vapi/metadata/JavaScriptCore-4.0-custom.vala index b0e0e27fe..42da6694c 100644 --- a/vapi/metadata/JavaScriptCore-4.0-custom.vala +++ b/vapi/metadata/JavaScriptCore-4.0-custom.vala @@ -58,7 +58,7 @@ namespace JS { [CCode (cname = "JSStringGetMaximumUTF8CStringSize")] public size_t get_maximum_utf8_cstring_size (); [CCode (cname = "JSStringGetUTF8CString")] - public size_t get_utf8_cstring ([CCode (array_length_type = "gsize")] ref uint8[] buffer); + public size_t get_utf8_cstring ([CCode (array_length_type = "gsize")] uint8[] buffer); [CCode (cname = "JSStringIsEqual")] public bool is_equal (JS.String b); [CCode (cname = "JSStringIsEqualToUTF8CString")] -- 2.47.2