diff options
author | Corentin Noël <corentin@elementary.io> | 2018-11-16 14:55:00 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-11-16 18:46:45 +0100 |
commit | 168b4efda30dd9bca16a6ea101b49f0e4ac36ac2 (patch) | |
tree | ce09247c64db80f17f136c213a749e428d2324e9 /vapi/glib-2.0.vapi | |
parent | 0875f0f80f88755bfdf08870deebb3022156f084 (diff) | |
download | vala-168b4efda30dd9bca16a6ea101b49f0e4ac36ac2.tar.gz |
glib-2.0: Avoid double-free in GLib.Array if clear_func is set
Diffstat (limited to 'vapi/glib-2.0.vapi')
-rw-r--r-- | vapi/glib-2.0.vapi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 39a7a361c..fee5c1d7f 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -5295,14 +5295,14 @@ namespace GLib { [CCode (cname = "vala_g_array_remove_index")] public G remove_index (uint index) { assert (length > index); - G g = data[index]; + G g = (owned) data[index]; _remove_index (index); return g; } [CCode (cname = "vala_g_array_remove_index_fast")] public G remove_index_fast (uint index) { assert (length > index); - G g = data[index]; + G g = (owned) data[index]; _remove_index_fast (index); return g; } @@ -5311,7 +5311,7 @@ namespace GLib { assert (this.length >= index + length); G[] ga = new G[length]; for (uint i = 0; i < length; i++) { - ga[i] = data[i + index]; + ga[i] = (owned) data[i + index]; } _remove_range (index, length); return ga; |